type, subtype
The function type returns one of the following string values:
The function subtype returns one of the following string values:
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
1 input |
all types | Value Value to be converted as described above. |
Type | Description |
---|---|
string | Type of value See main function desription |
a[num 1] = 1;
a[num 2] = a[num 1] + 0;
a[lit 1] = Plain text;
a[lit 2] = 'A softquoted string';
a[lit 3] = "A quoted string";
a[lit 4] = soft( a[lit 3] );
a[date] = date(today);
a[bool] = true;
a[pset] = { 1,2,3 };
a[void] = null();
for all variables( a[], value[], counter[], name[] )
{
echo( name[], ": ", value[], " --> ", type( value[] ), ", ", subtype( value[] ) );
}
bool: true --> boolean, boolean
date: 2024-07-14 --> date, plain date
lit 1: Plain text --> string, softquoted string
lit 2: A softquoted string --> string, softquoted string
lit 3: A quoted string --> string, quoted string
lit 4: A quoted string --> string, softquoted string
num 1: 1 --> numeral, numeral
num 2: 1 --> numeral, plain numeral
pset: {1,2,3} --> parameter set, parameter set
void: # Invalid Value # --> void, void