How to check empty Var with IF

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="">       
<Else />         
   not empty

this should return “empty” but is not…could you help me??

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 />

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.