<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Liquid Wiki Wrong?</title>
    <link>http://forums.shopify.com/categories/2/posts/20462</link>
    <language>en-us</language>
    <description>Feed for discussion topic Liquid Wiki Wrong?</description>
    <item>
      <title>Liquid Wiki Wrong?</title>
      <author>shopcora</author>
      <pubDate>Sun, 29 Jun 2008 19:49:26 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462</guid>
      <description>&lt;p&gt;I was using this example from the wiki:&lt;/p&gt;


&lt;code&gt;&lt;pre&gt;
{% if user.name == 'tobi' or if user.name == 'marc' %} 
  hi marc or tobi
{% endif %}
&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;After changing it to fit my needs I received an error.&lt;/p&gt;


	&lt;p&gt;However when modifying it to this (taking out the second &amp;#8220;if&amp;#8221;) it worked as expected:&lt;/p&gt;


&lt;code&gt;&lt;pre&gt;
{% if user.name == 'tobi' or user.name == 'marc' %} 
  hi marc or tobi
{% endif %}
&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;So is the wiki wrong? I didn&amp;#8217;t want to change it myself b/c I have little to no programming/liquid knowledge and wanted to double check.&lt;/p&gt;</description>
    </item>
    <item>
      <title>tobi commented</title>
      <author>tobi</author>
      <pubDate>Sun, 29 Jun 2008 22:22:29 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20466</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20466</guid>
      <description>&lt;p&gt;The syntax is correct but Shopify does not export a user variable. This example was just for demonstration purposes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>shopcora commented</title>
      <author>shopcora</author>
      <pubDate>Sun, 29 Jun 2008 22:41:52 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20467</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20467</guid>
      <description>&lt;p&gt;Hey Tobi,&lt;/p&gt;


	&lt;p&gt;Maybe I was vague when posting originally&amp;#8230;.but what I meant was I took that example from the wiki and used that as my basis in doing this&amp;#8230;&lt;/p&gt;


&lt;code&gt;&lt;pre&gt;

{% if collection.handle == 'dresses' or if collection.handle == 'under-20' %} 

sample content

{% endif %}
&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;It didn&amp;#8217;t work though&amp;#8230;I got some sort of liquid operation error. I then took out the second &amp;#8220;if&amp;#8221; (if collection.handle == &amp;#8216;under-20&amp;#8217;%} ) and the &amp;#8220;or&amp;#8221; statement worked as expected. See below:&lt;/p&gt;


&lt;code&gt;&lt;pre&gt;

{% if collection.handle == 'dresses' or collection.handle == 'under-20' %} 

sample content

{% endif %}
&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;So that made me think the wiki example was wrong. Who knows maybe I&amp;#8217;m just going crazy.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Christina commented</title>
      <author>Christina</author>
      <pubDate>Mon, 30 Jun 2008 08:14:27 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20474</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20474</guid>
      <description>&lt;p&gt;no you&amp;#8217;re right; the wiki is somewhat outdated.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caroline Schnapp commented</title>
      <author>Caroline Schnapp</author>
      <pubDate>Fri, 04 Jul 2008 22:05:37 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20562</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20562</guid>
      <description>&lt;p&gt;Oh great!&lt;/p&gt;


	&lt;p&gt;Thank you, Kaushal. I was wondering what I was doing wrong. I put an extra &amp;#8216;if&amp;#8217; there: &lt;a href="http://forums.shopify.com/categories/2/posts/20554#comment-20558"&gt;http://forums.shopify.com/categories/2/posts/20554#comment-20558&lt;/a&gt;. I will go correct my Liquid code.&lt;/p&gt;


	&lt;p&gt;Please correct the Wiki, Tobi. Or is there a way we can edit the Wiki ourselves? :-)&lt;/p&gt;</description>
    </item>
    <item>
      <title>tobi commented</title>
      <author>tobi</author>
      <pubDate>Fri, 04 Jul 2008 22:09:43 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20563</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20563</guid>
      <description>&lt;p&gt;Wiki&amp;#8217;s are all about user editing :-)&lt;/p&gt;


	&lt;p&gt;You just have to signup for an account. We had to disable anonymous editing because of all the spam&amp;#8230;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caroline Schnapp commented</title>
      <author>Caroline Schnapp</author>
      <pubDate>Fri, 04 Jul 2008 22:10:23 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20564</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20564</guid>
      <description>&lt;p&gt;Kaushal,&lt;/p&gt;


	&lt;p&gt;What third-party solution are you using for comments on your blog? It does not look this other solution that&amp;#8217;s endorsed by Shopify: &lt;a href="http://www.haloscan.com/features.php"&gt;http://www.haloscan.com/features.php&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caroline Schnapp commented</title>
      <author>Caroline Schnapp</author>
      <pubDate>Fri, 04 Jul 2008 22:10:53 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20565</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20565</guid>
      <description>&lt;p&gt;Let me do the honor then, my dear Tobi. :-)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caroline Schnapp commented</title>
      <author>Caroline Schnapp</author>
      <pubDate>Fri, 04 Jul 2008 22:12:39 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20566</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20566</guid>
      <description>&lt;blockquote&gt;this other solution that&#8217;s endorsed by Shopify&lt;/blockquote&gt;

	&lt;p&gt;Endorsed is a strong word. Maybe &lt;em&gt;recommended&lt;/em&gt;, nudged toward.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caroline Schnapp commented</title>
      <author>Caroline Schnapp</author>
      <pubDate>Fri, 04 Jul 2008 22:16:14 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20567</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20567</guid>
      <description>&lt;blockquote&gt;You just have to signup for an account. We had to disable anonymous editing because of all the spam&#8230;&lt;/blockquote&gt;

	&lt;p&gt;I signed up and corrected the errors. :-)&lt;/p&gt;</description>
    </item>
    <item>
      <title>tobi commented</title>
      <author>tobi</author>
      <pubDate>Fri, 04 Jul 2008 22:29:30 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20568</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20568</guid>
      <description>&lt;p&gt;thank you very much :-)&lt;/p&gt;</description>
    </item>
    <item>
      <title>shopcora commented</title>
      <author>shopcora</author>
      <pubDate>Sat, 05 Jul 2008 01:15:46 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20579</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20579</guid>
      <description>&lt;p&gt;Hey Caroline, the blog on our site is actually a wordpress blog hosted on another server with a different domain name (coraboutique.com/blog)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caroline Schnapp commented</title>
      <author>Caroline Schnapp</author>
      <pubDate>Sat, 05 Jul 2008 02:53:13 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20462#comment-20582</link>
      <guid>http://forums.shopify.com/categories/2/posts/20462#comment-20582</guid>
      <description>&lt;p&gt;Thank you, Kaushal, for getting back to me on this.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
