252
edits
Legoboyvdlp (talk | contribs) (→sprintf(): I learned that it includes + or - signs) |
|||
Line 2,403: | Line 2,403: | ||
=== isscalar() === | === isscalar() === | ||
{{Nasal doc | {{Nasal doc | ||
|syntax = | |syntax = isscalar(x); | ||
|source = {{simgear file|simgear/nasal/lib.c|t=Source}} | |source = {{simgear file|simgear/nasal/lib.c|t=Source}} | ||
|text = Returns 1 if type or argument is a scalar (string or numeric), otherwise (vector, hash, func, ...) it returns 0. This is useful to check if a variable can be converted to string e.g. when useing the string concat operator "~". | |text = Returns 1 if type or argument is a scalar (string or numeric), otherwise (vector, hash, func, ...) it returns 0. This is useful to check if a variable can be converted to string e.g. when useing the string concat operator "~". |
edits