Guest
May 20, 2012, 4:05 pm UTCHome arrow Commands arrow Additional Conditions arrow Variable Checks arrow Additional Conditions arrow Variable Checks
header image
Variable Checks
Written by Dream Dancer   
Nov 26, 2007 at 04:12 AM

Variable checks test against either internal event generated variables, (like [PLAYER]) or used generated variables to a value, which can also be a variable. Due to the loose typing of Furbot variables, you need to select whether you're testing against a numeric value or a text value, and remember, text values are caseless checks. And remember the test is done under Option Compare Text.

if the ds event contains index {#0}
0 0 DragonSpeak Index
TRUE if the ds event contains index {#0}
Whenever a DS event is triggered, and you check for a specific DS event, the system generates a table of the DSID's (and XY components) from the event. This table can be checked for the presense of a specific EventID so you don't have to do strange things to determine if a secondary event was also triggered along with the main DSID, you now have a table that holds all the events for you. This table is also accessable in WolfScript for detailed work.
if the ds event does not contain index {#0}
0 0 DragonSpeak Index
TRUE if the ds event does not contain index {#0}
Complement of the above, to determine if a particular DSID did not happen when the trigger is fired.
if variable {#0} contains text {#1} (case insensitive)
0 0 Variable (text)
1 1 Contains text
TRUE if variable {#0} contains text {#1} (case insensitive). Permits you to scan a string for particular words or characters. Uses the INSTR() Function.
if variable {#0} does not contain text {#1} (case insensitive)
0 0 Variable (text)
1 1 Contains text
TRUE if variable {#0} does not contain text {#1} (case insensitive). Permits you to scan a string for the lack of particular words or characters. Uses the INSTR() Function.
if variable {#0} is equal to {#1} (numeric comparison)
0 Variable (numeric)
1 Is equal to this
TRUE if {#0} is equal to {#1}.
if variable {#0} is greater than {#1} (numeric comparison)
0 Variable (numeric)
1 Is greater than this
TRUE if {#0} is greater than {#1}.
if variable {#0} is less than {#1} (numeric comparison)
0 Variable (numeric)
1 Is less than this
TRUE if {#0} is less than {#1}.
if variable {#0} is not equal to {#1} (numeric comparison)
0 Variable (numeric)
1 Is not equal to this
TRUE if {#0} is not equal to {#1}.
if variable {#0} is not the same as {#1} (text comparison)
0 Variable (text)
1 Is not the same as
TRUE if {#0} is not LIKE {#1}. Caseless comparision.
if variable {#0} is the same as {#1} (text comparison)
0 Variable (text)
1 Is the same as
TRUE if {#0} is LIKE {#1}. Caseless comparision.
Last Updated ( Feb 20, 2010 at 08:37 PM )
<Previous   Next>
header image