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