IF condition, Var and string problem
-
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]
The topic ‘IF condition, Var and string problem’ is closed to new replies.