Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John Logan 24 posts 65 karma points
    Sep 28, 2017 @ 11:44
    John Logan
    0

    Conditions

    Hi Having issues with the if/else conditions

    here is what I have re a simple test

    {if [#abc#] != 'FED'}Not FED! {else} ELSE True{/if}
    {if [#abc#] = 'FED'} isFED {else} ELSE True {/if}
    abc- --[#abc#]--  
    

    and here is what I get in the email

    Not FED!
    ELSE True 
    abc- --FED--  
    

    so it seems to be doing the reverse of what I expect

    Any ideas of what I am doing wrong or if this is a bug?

    Cheers J

    For ref Umbraco v 7.6.5 Umbraco Forms v 6.0.2 PerplexMail v 2016-11-02

  • [email protected] 406 posts 2135 karma points MVP 7x c-trib
    Oct 16, 2017 @ 11:55
    jeffrey@umarketingsuite.com
    0

    Hi John,

    I was on holiday for four weeks so I didn't have anytime to respond earlier, but this looks a bit weird indeed.

    One known bug we have is that sometimes when you copy-paste a tag into the richtext editor is that it places span-tags around the tagname. Only if you look into the html of the RTE you will see this.

    So it could be the case that it's not [#abc#] what is being parsed, but:

    [#<span>abc</span>#]
    

    And that could lead to the above result.

    Maybe you can check this, or maybe you already solved it.

    -- Jeffrey

  • John Logan 24 posts 65 karma points
    Oct 17, 2017 @ 12:19
    John Logan
    100

    Hi Jeffrey

    Yep the spans where the problem. they were not around the tag as you suggested but around the if/else brackets - after cleaning up the span tags it now works as expected

    Cheers J

Please Sign in or register to post replies

Write your reply to:

Draft