<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : CoTemplate Help</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 01 May 2026 13:58:17 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	There is no '=' operator in CoTemplate, it is '=='. You're right, those examples are wrong. I've corrected them, thanks for noticing!</p>
<p>
	Also it should be 'ENDIF' instead of 'END:TEST'.</p>
]]></description>
			<pubDate>Pzt, 09 Tem 2012 21:17:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7003&d=0#post34912]]></link>
		</item>
		<item>
			<title>fraze</title>
			<description><![CDATA[<p>
	Hi</p>
<p>
	I've got some issues with CoTemplate statements...</p>
<p>
	I have created an extra iserfield for the site i've built that lets them choose which class they play in-game.  what i'd like to be able to do is that when they choose a class the CoTemplate picks up that class and shows a div.  This is what i've got but when i use it, it loads all of the divs, not just the one shown by {USERS_DETAILS_CLASS}</p>
<pre class="brush:plain;">
&lt;!-- IF {USERS_DETAILS_CLASS} = 'Heavy Assault' --&gt;
&lt;div class="heavy"&gt;&lt;/div&gt;
&lt;!-- ENDIF --&gt;
&lt;!-- IF {USERS_DETAILS_CLASS} = 'Engineer' --&gt;
&lt;div class="engi"&gt;&lt;/div&gt;
&lt;!-- ENDIF --&gt;
&lt;!-- IF {USERS_DETAILS_CLASS} = 'Infiltrator' --&gt;
&lt;div class="infil"&gt;&lt;/div&gt;
&lt;!-- ENDIF --&gt;
&lt;!-- IF {USERS_DETAILS_CLASS} = 'Light Assault' --&gt;
&lt;div class="lighta"&gt;&lt;/div&gt;
&lt;!-- ENDIF --&gt;
&lt;!-- IF {USERS_DETAILS_CLASS} = 'MAX' --&gt;
&lt;div class="max"&gt;&lt;/div&gt;
&lt;!-- ELSE --&gt;
&lt;div class="noclass"&gt;&lt;/div&gt;
&lt;!-- ENDIF --&gt;</pre>
<p>
	Any help would be greatly appreciated :)</p>
<p>
	<strong>Added 6 minutes later:</strong></p>
<p>
	i just realised i'd only put one '=' - with '==' in the statements....nothing shows up.</p>
<p><strong>Added 4 minutes later:</strong></p><p>
	ok i've fixed the problem...</p>
<p>
	<a href="http://www.cotonti.com/docs/ext/themes/xtemplate_introduction">http://www.cotonti.com/docs/ext/themes/xtemplate_introduction</a> is wrong.  it shows that the following statement will work as an example:</p>
<pre class="brush:plain;">
&lt;!-- IF {USER_DETAILS_NAME} = 'Mark' AND {PHP.g} &gt;= 6 OR !{PHP.error_string} --&gt; &lt;div&gt;The expression is true!&lt;/div&gt; &lt;!-- ELSE --&gt; &lt;div&gt;The expression is false!&lt;/div&gt; &lt;!--END:TEST--&gt;</pre>
<p>
	where it actually needs to be</p>
<pre class="brush:java;">
&lt;!-- IF {USER_DETAILS_NAME} == "Mark" AND {PHP.g} &gt;= 6 OR !{PHP.error_string} --&gt; &lt;div&gt;The expression is true!&lt;/div&gt; &lt;!-- ELSE --&gt; &lt;div&gt;The expression is false!&lt;/div&gt; &lt;!--END:TEST--&gt;</pre>
<p>
	had to re-read the article 3 times to make sure I wasnt missing things while reading...</p>
<p>
	at least its sorted :)</p>
]]></description>
			<pubDate>Pzt, 09 Tem 2012 20:39:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7003&d=0#post34910]]></link>
		</item>
	</channel>
</rss>