ALL
Syntax
<Result> := ALL (<Expression>, <Character>)
Description
Use this function to test whether a value contains only the character specified as <Character>. If all characters match, the function returns TRUE. Otherwise, it returns FALSE.
Diagram
Returned value type
Boolean
Parameters
| Parameter | Description |
|---|---|
| <Result> | The object to place the boolean result in |
| <Expression> | Expression that returns the value to be tested |
| <Character> | A single character specified between single quotes (' '). The character may also be specified as a hexadecimal, so you may also specify '@41@' instead of 'A' |
Example
sa-10 := '**********'
sn-6 := 777787
if all (sa-10, '*')
sme ('SA-10 is all stars')
endif
if not all (sn-6, '7')
sme ('SN-6 is not all sevens')
endif