Files
MagicSetEditor2/doc/function/contains.txt
T
twanvl 158ecf67ad Now all regex functions use ScriptRule.
The *_rule functions can now be considered deprecated
Documented this by removing mentions of the rule functions, except for a mention of backwards compatibility.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@997 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-19 00:37:48 +00:00

20 lines
552 B
Plaintext

Function: contains
--Usage--
> contains(some_string, match: to_search_for)
Does one string contain another at any position?
--Parameters--
| @input@ [[type:string]] String to look in
| @match@ [[type:string]] String to look for
--Examples--
> contains("abcdefg", match:"abc") == true
> contains("abcdefg", match:"defg") == true
> contains("abcdefg", match:"abd") == false
--See also--
| [[fun:match]] Does a string match a regular expression?
| [[fun:chosen]] Is the given choice selected in a multiple choice value?