Hi All,
I am trying to run a part of a script based on condition on a column. If that condition is failed, it should run other part of the script or include other script.
It seems very simple but I am not able to do that. I have followed two approaches - using "include" function to call a script and "Expr" function to call a part of the code. None is working. Any help here ?
1st Approach -
dt = Data Table( "Data" ) << If ( PRODUCT == "A", include("C:\....\Script1.jsl"), include("C:\....\Script2.jsl"), );
This is not working while both scripts 1 and 2 are working independently.
2nd Approach is similar to 1st but using "Expr", the way mentioned in - Sectioning or Segmenting Code in JSL
Many thanks,