Sha256: b2018b20eabf8d6cd9eda38188fee7c25922564dd4bca25722f972b5f3efb750

Contents?: true

Size: 922 Bytes

Versions: 22

Compression:

Stored size: 922 Bytes

Contents

UNLESS VERB
  NAME: unless
  SHORTCUT: if!

  DESCRIPTION
    Unless an expression is true, do something.
    This is the opposite of the if verb.

  SYNTAX
    unless <true> do <command>

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

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

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

    Other errors depend on the command that is run.

  EXAMPLE

    unless [container] :
      x [bool] : true
      false_msg [string] : It is NOT true!
      on_load [script] :
        unless unless.x do show "first time: " + unless.false_msg
        put false into unless.x
        unless unless.x do show "second time: " +  unless.false_msg

  SEE ALSO
    if

Version data entries

22 entries across 22 versions & 2 rubygems

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