Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
sibrulotte
Contributor 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
MVP
MVP

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

try

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

....

ELSE

....

ENDIF;

3 Replies
MVP
MVP

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

try

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

....

ELSE

....

ENDIF;

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

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
Contributor II

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

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

Community Browser