Help:Sbp.func.prefix
From Tetherless World Wiki
Contents |
Description
| Help:Sbp.func.prefix | Template:Sbp.func.prefix |
- description: check the presence of a prefix in text
- module: Help:SMW FIT
- version: 0.1
- status: unstable
- author: Li Ding
Overview
Check presence of a prefix in a text string.
By default, output two numbers:
- 0 (no) text does not use the prefix
- 1 (yes) otherwise
User can customize output with the following parameters
- out_yes
- out_no
Examples
Example 1. Matches found (expect 1 on each line)
1
1
1
1
1
Example 2. Matches not found (expect 0 on each line)
0
0
0
0
0
0
0
0
