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

No edit summary
Line 28: Line 28:
?if(TOTLEN>240, if(length(A)>50, set(A, limit(A, max(50, 240-length(E)-length(TAIL))))))
?if(TOTLEN>240, if(length(A)>50, set(A, limit(A, max(50, 240-length(E)-length(TAIL))))))
?out(A+if(length(E)>0, ' - '+E)+TAIL)</pre></code>
?out(A+if(length(E)>0, ' - '+E)+TAIL)</pre></code>
'''Constant expressions'''<br />
There are two ways to specify string literals:
'text' - use '' to insert a '
or
"text" - use \" to insert a "
Number literals are simply written as numbers:
1234
There are also boolean consants:
true
false


'''Custom tags'''<br />
'''Custom tags'''<br />
Line 175: Line 188:
|-
|-
|A&lt;&gt;B||true if A does not equal B
|A&lt;&gt;B||true if A does not equal B
|-
|A!=B||true if A does not equal B
|-
|-
|A&lt;B||true if A is less than B
|A&lt;B||true if A is less than B
254

edits

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