$istok » History » Version 6
Per Amundsen, 02/23/2023 01:46 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$istok(text,token,C)* |
||
4 | |||
5 | Returns [[$true]] if token exists in text, otherwise returns [[$false]]. |
||
6 | |||
7 | 5 | Per Amundsen | _[[$istok]] is case-insensitive, see [[$istokcs]] for a case-sensitive version._ |
8 | 1 | Per Amundsen | |
9 | *Parameters* |
||
10 | |||
11 | 6 | Per Amundsen | table(ktable). |
12 | |*Parameter*|*Description*| |
||
13 | | text | The text to tokenize. | |
||
14 | | token | The token to check. | |
||
15 | | C | The "ASCII":http://www.asciitable.com/ value to tokenize by. | |
||
16 | 1 | Per Amundsen | |
17 | *Example* |
||
18 | |||
19 | <pre> |
||
20 | ; Check if 'b' is a token in 'a.b.c.d' |
||
21 | //echo -ag $istok(a.b.c.d, b, 46) |
||
22 | </pre> |