if

Command to support conditional execution.

Usage: if {condition} ifTrue [ifFalse]
admin@localhost:/TEA> if {echo 'true'} {ls} {echo 'false'}
members
agents
users
groups
roles
realms
machines
solutions

admin@localhost:/TEA>
where

condition: is the condition to meet by the if construct.

ifTrue: is the segment that gets executed when the condition is true.

ifFalse: is the segment that gets executed when the condition is false.

Related concepts