Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sibrulotte
Creator III
Creator III

If variable is equal to 'POS' then...

Hi,

I thought this would be straight foreward:

IF  $(POS_vs_TRANS) = 'POS' THEN

Addon:

replace LOAD * INLINE [

    Addon

    1

    2

    3

];

ELSE

TRACE $(POS_vs_TRANS);

end if

;

I'm tracing in the else just to check if my variable has the correct value, and it does... but I never load that table...

1 Solution

Accepted Solutions
maxgro
MVP
MVP

try

IF  '$(POS_vs_TRANS)' = 'POS' THEN

....

ELSE

....

ENDIF;

View solution in original post

3 Replies
maxgro
MVP
MVP

try

IF  '$(POS_vs_TRANS)' = 'POS' THEN

....

ELSE

....

ENDIF;

sunny_talwar

I am guessing (because you have Replace next to LOAD) that you are doing a partial reload to load this table because Replace LOAD won't be reloaded during a regular reload.

svenkita
Creator II
Creator II

IF  '$(POS_vs_TRANS)' = 'POS' THEN
Addon:
replace LOAD * INLINE [
Addon
1
2
3
]
;
ELSE
TRACE $(POS_vs_TRANS);
end if;