Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
jagannalla
Partner - Specialist III
Partner - Specialist III

Based on Condition the EditScript should be Reload

Hi,

- I want to keep a conditon in reload editscript. In the below following format.

if(vGlobalId=0)

     {

          I want to reload few tables here i.e table1,table2,table3...etc

     }

  else

    {

         I want to reload few tables here i.e table4,table5,table6...etc

    }

Is it possible to do this? if possible how can i do this can anybody help me.

Also i need answer whether it possible or not.

1 Solution

Accepted Solutions
Anonymous
Not applicable

Sure you can do if/else/then statements in the script. A good source is the F1 help. Here's an example on the syntax:

if x>0 then

load * from pos.csv;

elseif x<0 then

load * from neg.csv;

else

load * from zero.txt;

end if

(do note though that if you want to load a certain table regardless of the variable value, you'll want to place it outside the condition)

View solution in original post

2 Replies
Anonymous
Not applicable

Sure you can do if/else/then statements in the script. A good source is the F1 help. Here's an example on the syntax:

if x>0 then

load * from pos.csv;

elseif x<0 then

load * from neg.csv;

else

load * from zero.txt;

end if

(do note though that if you want to load a certain table regardless of the variable value, you'll want to place it outside the condition)

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Thanks a lot jsn it's working fine...