Returns whether a numeric token has been read from the specified stream tokenizer object.
Syntax
TT_NUMBER( streamtokenizer )
streamtokenizer.TT_NUMBER( )
Parameters
streamtokenizer
|
the stream tokenizer object to use.
|
Returns
boolean
|
true if the current read token is a number.
false if the current read token is not a number.
|
Example
if st.TT_NUMBER( ) then
break
end
|