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

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.