AniDB O'Matic - Documentation: Local file renaming: Difference between revisions

Line 154: Line 154:
===Function tags===
===Function tags===
{|
{|
|contains(find, text)||boolean||Returns true if *find* is found in *text*. Case sensitive.
|contains(find, text)||boolean||Returns true if *find* is found in *text*. Case sensitive.<br>Example: contains('bcd', 'abcdef') = true
|-
|-
|?if(test, trueval, falseval)||any||If statement, returns trueval if test is true, otherwise returns falseval.<br> Example: ?if(a=b, 'equal', 'not equal')
|if(test, trueval[, falseval])||any||If statement, returns *trueval* if *test* is true, otherwise returns *falseval*.<br> Example: if(23=23, 'equal', 'not equal') = 'equal'
|-
|-
|?in(find, text)||boolean||Checks if find is present text.<br>Example ?in('complete movie', lc(e))
|in(find, text...)||boolean||Checks if *find* is present in a number of *text* parameters.<br>Example: in('bb', 'aa', 'bb', 'cc', 'dd') = true
|-
|-
|?join(glue, text...)||text||Joins together two or more texts, empty parameters are ignored with no glue added.<br>Example ?join(' ', 'a', 'b', 'c')
|join(glue, text...)||text||Joins together two or more *text*s, empty parameters are ignored with no glue added.<br>Example: join(' ', 'a', 'b', 'c') = 'a b c'
|-
|-
|?lc(text)||text||Converts text to lower case.<br>Example ?lc(crc)
|?lc(text)||text||Converts text to lower case.<br>Example ?lc(crc)
254

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.