Logic
6 posts tagged with "Logic"
conditional
The conditional action a very special op that is a conditional attach/execution of a SINGLE compiled op to its previous op. It belongs to the flow category within the system area.
Action Syntax
conditional
This action takes no parameters and is used as a bare command.
Examples
// Basic Usage
conditional
endconditional
The endconditional action :end to end multiline conditional. It belongs to the flow category within the system area.
Action Syntax
endconditional
This action takes no parameters and is used as a bare command.
Examples
// Basic Usage
endconditional
if
The if action if statement. It belongs to the logic category within the system area.
Action Syntax
if $variable = 123
if $variable is 123
if $variable = "text"
if $variable is "text"
if $variable = $variable
if $variable is $variable
if $variable = true|false
if $variable is true|false
if $variable < 123
if $variable < $variable
if $variable <= 123
if $variable <= $variable
if $variable > 123
if $variable > $variable
if $variable >= 123
if $variable >= $variable
if $variable contains "text"
if $variable contains $variable
if $variable starts-with "text"
if $variable starts-with $variable
if $variable ends-with "text"
if $variable ends-with $variable
if $variable is not "text"
if $variable is not 123
if $variable is not true|false
if $variable is not $variable
if missing $variable
if have $variable
Examples
// Basic Usage
if $foo = 10
logic
The logic action logic operations. It belongs to the logic category within the system area.
Action Syntax
logic $variable and $variable
logic $variable or $variable
logic $variable xor $variable
Return Value
This function returns a
not
The not action a negation action for logic statements like if and when. It belongs to the logic category within the system area.
Action Syntax
This action accepts various parameters. See the examples below for usage patterns.
Valid sizes
Examples
// Basic Usage
not
when
The when action when - a synonymn for if. It belongs to the logic category within the system area.
Action Syntax
when $variable
Valid sizes
Examples
// Basic Usage
when $var