Sha256: 1b1cc080716f8df13bcd7a321ed461e73b207e41b9fbce0fd050f88c75c4ca6a

Contents?: true

Size: 821 Bytes

Versions: 22

Compression:

Stored size: 821 Bytes

Contents

IF VERB
  NAME: if
  SHORTCUT: if

  DESCRIPTION
    If an expression is true then do something.

  SYNTAX
    if <true> then <do>

  PARAMETERS
    true - Does the expression evaluate to true?
    do - Execute command if the expression is true.

  RESULT
    Unchanged if the expression is not true.
    If true, then the result will be based on the command
    specified after the 'then' keyword.

  ERRORS
    Missing Expression!
      - No expression is provided as parameter to the verb.

    Other errors depend on the command that is run.

  EXAMPLE

    if [container] :
    	x [bool] : false
    	true_msg [string] : It is true!
    	on_load [script] :
    		if if.x then show "first time: " + if.true_msg
        put true into if.x
        if if.x then show "second time: " + if.true_msg

  SEE ALSO
    unless

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
gloo-lang-1.0.2 lib/gloo_lang/help/verbs/if.txt
gloo-1.0.0 lib/gloo/help/verbs/if.txt
gloo-lang-1.0.1 lib/gloo_lang/help/verbs/if.txt
gloo-lang-1.0.0 lib/gloo_lang/help/verbs/if.txt
gloo-lang-0.9.11 lib/gloo_lang/help/verbs/if.txt
gloo-lang-0.9.10 lib/gloo_lang/help/verbs/if.txt
gloo-lang-0.9.9 lib/gloo_lang/help/verbs/if.txt
gloo-lang-0.9.8 lib/gloo_lang/help/verbs/if.txt
gloo-lang-0.9.7 lib/gloo_lang/help/verbs/if.txt
gloo-lang-0.9.6 lib/gloo_lang/help/verbs/if.txt
gloo-lang-0.9.5 lib/gloo_lang/help/verbs/if.txt
gloo-lang-0.9.4 lib/gloo_lang/help/verbs/if.txt
gloo-lang-0.9.3 lib/gloo_lang/help/verbs/if.txt
gloo-0.8.0 lib/gloo/help/verbs/if.txt
gloo-0.7.7 lib/gloo/help/verbs/if.txt
gloo-0.7.6 lib/gloo/help/verbs/if.txt
gloo-0.7.5 lib/gloo/help/verbs/if.txt
gloo-0.7.4 lib/gloo/help/verbs/if.txt
gloo-0.7.3 lib/gloo/help/verbs/if.txt
gloo-0.7.2 lib/gloo/help/verbs/if.txt