If
This article is an generic explanation how the 'if' command works. To know if 'if' is supported in any given block, check the documentation of the command using the block.
If takes two arguments: both need to match in order for the block given to if being evaluated.
Example:
if "1234" "1234" {
# block is evaluated
}
if "1111" "2222" {
# block is skipped
}
Arguments | |||
---|---|---|---|
# | Name | Type | Info |
0 |
val1
|
str
|
Expanded?: ✅ |
1 |
val2
|
str
|
Expanded?: ✅ |