7.6 Checking data types

Sometimes, you may need to check the type of a given variable or expression: the following functions will do the job:

7.6.1 isint (expr)

Return true if expr is an integer, false otherwise

7.6.2 isstring (expr)

Return true if expr is a string, false otherwise

7.6.3 isarray (expr)

Return true if expr is an array, false otherwise

There is no a isbool() function since booleans are implemented as integers.

This manual can be downloaded from http://www.g-cows.org/.