Template:Contains: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>{{#invoke:contains|value|haystack={{{1|needle in a haystack}}}|needle={{{2|needle}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:contains|value|haystack={{{1|needle in a haystack}}}|needle={{{2|needle}}}}}</includeonly><noinclude>
==Usage==
==Usage==
<nowiki>{{#ifeq:{{contains|chocolate|choco}}|1|print if true|print if false}}</nowiki>
<nowiki>{{#ifeq:{{contains|chocolate|choco}}|1|print if true|print if false}}</nowiki>

Latest revision as of 21:42, 2 December 2023

Usage[edit | hide | hide all]

{{#ifeq:{{contains|chocolate|choco}}|1|print if true|print if false}}

print if true

{{#ifeq:{{contains|chocolate|cocoa}}|1|print if true|print if false}}

print if false