Posted: Fri Feb 27, 2015 5:29 am Post subject: Need Some Help!
Acolyte
Joined: 13 Nov 2014 Posts: 74
Code:
IF FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp1_location) IS NULL OR FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp2_location) IS NULL THEN
SET OutRef.value.ns2:logistic_network = NULL;
SET Environment.Variables.FailureLogs = Environment.Variables.FailureLogs +1 ;
SET OutRef.value.ns2:samp_net.ns2:failureName = LogNetRef.ns1:ID;
SET Environment.Variables.FailureName = LogNetRef.ns1:ID;
SET Environment.Variables.Failureid = LogNetRef.ns1:RevName;
SET count = count + 1;
PROPAGATE TO TERMINAL 0 DELETE NONE ;
ITERATE NEXTITEM;
END IF;
- problem is samp1_location and samp2_location has values inside but it process the Null function and It wont Iterate to NextItem.
IF FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp1_location) IS NULL OR FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp2_location) IS NULL THEN
SET OutRef.value.ns2:logistic_network = NULL;
-- set a breakpoint at the next line and check the values of the test variables
-- OR append the test variable values in the output message
SET Environment.Variables.FailureLogs = Environment.Variables.FailureLogs +1 ;
SET OutRef.value.ns2:samp_net.ns2:failureName = LogNetRef.ns1:ID;
SET Environment.Variables.FailureName = LogNetRef.ns1:ID;
SET Environment.Variables.Failureid = LogNetRef.ns1:RevName;
SET count = count + 1;
PROPAGATE TO TERMINAL 0 DELETE NONE ;
ITERATE NEXTITEM;
END IF;
Done testing, Data has been successfully reflected. meaning samp1_location and samp2_location has data inside. But my question is since it has data inside and the condition made it into false why would it process the said data inside the If condition. But my problem is with the Iteration, it just wont proceed after the If condition.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum