This is the ThingsDB documentation for version v0, click here for the latest version!
This function determines whether the provided value is of
type str or bytes.
This function does not generate an event.
is_raw(value)
| Argument | Type | Description |
|---|---|---|
| value | any (required) | The value to be tested. |
Returns true if the given value is of type str or bytes, else false.
This code shows some return values for is_raw():
[
is_raw( 'some string' ),
is_raw( bytes('xxxx') ),
];
Return value in JSON format
[
true,
true
]