Game Maker Games, Articles, Tutorials & More

Game Maker Network


Howdy, Guest! Please sign in or register an account.

Print

equal

By Daniel · December 26, 2008

Tests whether two pieces of data are equal in both type and content. Useful for avoiding errors from comparing strings with reals.

// equal(data1, data2)
// Tests whether two pieces of data are equal in both type and content
// Useful for avoiding errors from comparing strings with reals

if (is_string(argument0) == is_string(argument1))
  return (argument0 == argument1);
else
  return false;

Categories: Data processing

Comments

There are no comments to display.

Post a Comment

You must be signed in to post comments.

Advertisement