Skip to content

← Previous | Next →


if

Description

Evaluates a given value as a condition and returns a result based on whether the value is true or false.

Basic information

Name Type Possibilities
if both 2

Parameters

# Name Type Mandatory Description Multiple
1 value boolean Yes The value to evaluate. Accepts 'true' or 'false' No

Outputs

# Description
1 The value is true.
2 The value is false.

Example


  interaction 
    if {2 > 1} 
      tell "This condition is true." 
      tell "This condition is false." 

  behaviour 
    nothing