<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: prefix name macro condition]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in prefix name macro condition of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Mon, 16 May 2016 09:39:56 +0300</lastBuildDateTag>		<item>
			<title>prefix name macro condition</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic12686/message43328/">prefix name macro condition</a></b> <i>template with name of the person with prefix and first name</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			====code====
<pre>Dear %IF:"%AbTONamePrefix"=0:"%TOFNAME" %IF:"%AbTONamePrefix"&#60;&#62;0:%AbTONamePrefix %AbTOFirstName=%TOFNAME, </pre>
=============
That kind of worked. No idea why. Would be nice to have a page in help file which explains how to do such kind of things. It's not that I understand what I did, I just tried and it worked. But doing something you don't know why and what, is not the best thing or way to do it <img src="http://www.ritlabs.com/bitrix/images/main/smiles/5/icon_smile.gif" border="0" data-code=":)" data-definition="SD" alt=":)" style="width:16px;height:16px;" title="" class="bx-smile" /> <br />
			<i>16 May 2016 09:39:56, <a href="http://www.ritlabs.com/en/forums/">Jozsef</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic12686/message43328/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic12686/message43328/</guid>
			<pubDate>Mon, 16 May 2016 09:39:56 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>prefix name macro condition</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic12686/message43324/">prefix name macro condition</a></b> <i>template with name of the person with prefix and first name</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			I read the Programming and Regular Expressions part of the help file ( <noindex><a href="https://www.ritlabs.com/en/support/help/73/" target="_blank" rel="nofollow">https://www.ritlabs.com/en/support/help/73/</a></noindex> ) but I still can't understand the conditional part.<br />How do I make a template which will insert the Prefix from Address Book in front of the first name of the person but only if the Prefix exist in Address Book. If Prefix does not exist, to insert the first name only?<br />I tried this:
====code====
<pre>%AbTONamePrefix %TOFNAME</pre>
=============
It didn't work. What it does is makes the Prefix appear twice, like: Mr Mr Sergey, instead of: Mr Sergey. <br />
			<i>12 May 2016 14:46:14, <a href="http://www.ritlabs.com/en/forums/">Jozsef</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic12686/message43324/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic12686/message43324/</guid>
			<pubDate>Thu, 12 May 2016 14:46:14 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
