function elseif not recognized

7 views
Skip to first unread message

Benjamin Andersen

unread,
Apr 13, 2015, 4:13:07 AM4/13/15
to puppet-...@googlegroups.com
i made a simpel if elseif and else test


     if true {

        $s = false

      } elseif {

        $f = false

      }



the gepetto says unknown function


anyone have same problem

Thomas Hallgren

unread,
Apr 13, 2015, 4:55:12 AM4/13/15
to puppet-...@googlegroups.com
Hi Benjamin,

I think the correct keyword is 'elsif', not 'elseif'.

http://docs.puppetlabs.com/puppet/latest/reference/lang_conditional.html#if-statements

- thomas
--
You received this message because you are subscribed to the Google Groups "Puppet Geppetto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-geppet...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Benjamin Andersen

unread,
Apr 13, 2015, 5:00:07 AM4/13/15
to puppet-...@googlegroups.com
Sorry have starred blind on that one.
Thanky Thomas my mistake.. 
Reply all
Reply to author
Forward
0 new messages