If / Else
Perform conditional logic based on variable contents

Preview
Parameters
Inputrequired
Text
The value to be tested. Performs full parsing of %arguments%
, ~persistedGlobals~
and $inlineFunctions()$
Unlike earlier version of Streamer.bot, arguments must be enclosed in
%...%
in order for their values to be tested. If using Does Not Exist
, then just use the argument name, without the %
.Operatorrequired
Select
default:
Equals
Choose the type of test to perform on the selected variable
Equals
: Check if the variable equals a given valueNot Equals
: Check if the variable does not equal a given valueContains
: Check if the variable contains the given valueRegex Match
: Use a Regular Expression to match variable contentsLess Than
: Check if a numeric variable is less than a given value (does NOT include the set value)Greater Than
: Check if a numeric variable is greater than a given value (does NOT include the set value)Does Not Exist
: Check if the variable name is defined at allEquals (Ignore Case)
: Check if a string variable equals a given value, case insensitiveNot Equals (Ignore Case)
: Check if a string variable does not equal a given value, case insensitiveIs Null or Empty
: Check if a variable isNull
or empty
Auto Type
Toggle
default:
true
Without Auto Type, values are treated as text, or string
variables, which may result in surprising results like "15
" being Less Than
"2
"
Enable Auto Type
to automatically determine the type for the variable value. This is usually what you want, unless you are deliberately performing lexicographic (alphabetical) comparison on text which might happen to contain numbers.
For example:
0
can be auto-typed to a numeric type such asint
orlong
true
orfalse
can be auto-typed to abool
Valuerequired
Text
Enter the value you would like to use for comparison.
This field is parsed, so may contain other %arguments%
, ~persistedGlobals~
and $inlineFunctions()$