is_string( ) (Game Maker)
is_string()
( Game Maker 6.1, 7 )
is_string - returns true if its argument is a string.
Description
bool = is_string ( test )
- bool- returned true/false value
- test - the value to test.
Examples
this_is_string = 42;
if(is_string(this_is_string)){
room_caption = "It's a string";
}else{
room_caption = "It's not a string";
}
Related Pages
- is_real() - returns true if its argument is a real number.
- string() - convert a real number to a string.
page revision: 15, last edited: 30 Mar 2016 08:53