• Hello!, I’m trying to do something very simple, but there is something weird in the behaivor….I’m missing something.
    I’m passing a text that is comming from ‘var_example’ shortcode (using shortcoder)
    in var_example shortcode, i’m having some logic that return something like
    [pass var]{VAR_EXAMPLE}[/pass]

    Then in this shortcode IF is not detecting the Value…so is never printing “Hello”…weird because if i’m visualizing this “{X}”, I can see that there is text inside…….and If in var_example shortcode I’m not using [pass var] or [GET] to return a value, the IF works perfect…..Could you help me??

    [set x][sc name=”var_example”][/set]
    [pass vars]
    [if var=’x’ value= ‘{X}’ empty=false]
    Hello
    [/if]
    [/pass]

Viewing 1 replies (of 1 total)
  • Thread Starter fermillerkite

    (@fermillerkite)

    I got the problem, when there is some special caracter in X, the [if] doens’t work…..
    like “,” in the text….my solution for now is
    [set texto][var_texto][/set]
    [set texto1][format slugify][get texto][/format][/set]
    [/pass]
    [pass vars]
    [if var=’texto1′ value='{TEXTO1}’ empty=false]
    {TEXTO}
    [else]

Viewing 1 replies (of 1 total)

The topic ‘IF condition, Var and string problem’ is closed to new replies.