Fernando
(Fernando Miller)
1
Hello! I’m trying to check if a string Variable is empty or not, but is not working,
<Set name=test_var></Set>
<If check="{Get test_var}" is value="">
empty
<Else />
not empty
</If>
this should return “empty” but is not…could you help me??
Thanks
eliot
(Eliot Akira)
2
Hi Fernando,
The check
attribute without value
can be used to check if something is not empty.
<If check="{Get test_var}">
Not empty
<Else />
Empty
</If>
But it does make sense how you expressed it with is value=""
. I’ve made a note to see if this can be made to work as expected.
1 Like