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