Skip to main content

instanceOfString (Function)

Checks whether the parameter is an instance of String or not.

Syntax

<BOOL> instanceOfString(<INT|LONG|DOUBLE|FLOAT|STRING|BOOL|OBJECT> arg)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
argThe parameter to be checked.INT LONG DOUBLE FLOAT STRING BOOL OBJECTNoYes

Example 1

    insert into barStream
select instanceOfString(value) as state
from fooStream;

This returns true if the value field format is string ex : test.

Example 2

    insert into barStream
select instanceOfString(switchState) as state
from fooStream;

If the switchState is True, this returns False because the value is not a string.