Format | define_variable(+$VARIABLE) | |||
---|---|---|---|---|
Arguments |
| |||
This predicate defines a new variable named $VARIABLE |
Format | define_string_variable(+$VARIABLE) | |||
---|---|---|---|---|
Arguments |
| |||
This predicate defines a new string variable named $VARIABLE |
Format | define_integer_variable(+$VARIABLE) | |||
---|---|---|---|---|
Arguments |
| |||
This predicate defines a new integer variable named $VARIABLE |
Format | define_float_variable(+$VARIABLE) | |||
---|---|---|---|---|
Arguments |
| |||
This predicate defines a new float variable named $VARIABLE. |
Format | init_string_variable(+$VARIABLE) | |||
---|---|---|---|---|
Arguments |
| |||
This predicate defines a new string variable named $VARIABLE, and initializes it to "". |
Format | init_integer_variable(+$VARIABLE) | |||
---|---|---|---|---|
Arguments |
| |||
This predicate defines a new integer variable named $VARIABLE, and initializes it to 0. |
Format | init_float_variable(+$VARIABLE) | |||
---|---|---|---|---|
Arguments |
| |||
This predicate defines a new float variable named $VARIABLE, and initializes it to 0.0. |
Format | set_variable(+$VARIABLE, +$VALUE) | ||||||
---|---|---|---|---|---|---|---|
Arguments |
| ||||||
This predicate lets the value of $VARIABLE be $VALUE. |
Format | get_variable(+$VARIABLE, -$VALUE) | ||||||
---|---|---|---|---|---|---|---|
Arguments |
| ||||||
This predicate lets $VALUE be the value of $VARIABLE. |
Format | add_variable(+$VARIABLE, +$VALUE) | ||||||
---|---|---|---|---|---|---|---|
Arguments |
| ||||||
This increases the value of $VARIABLE by $VALUE. |
Format | inc_variable(+$VARIABLE) | |||
---|---|---|---|---|
Arguments |
| |||
This predicate increments a variable |
Format | inc_variable(+$VARIABLE, -$OLD) | ||||||
---|---|---|---|---|---|---|---|
Arguments |
| ||||||
This predicate increments a variable. $OLD will be an old value of the variable. |
Format | inc_variable(+$VARIABLE, -$OLD, -$NEW) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Arguments |
| |||||||||
This predicate increases the value of $VARIABLE by 1. $OLD and $NEW are respectively the old and new value of $VARIABLE. |