Hello,
I am running issues while comparing below 2 list items. can you please help me identify the bug.
pline = '( "State" "4" "time")
i=length(pline)
item3 = nth(i-1 pline)
item2 = nth(i-2 pline)
item1 = nth(i-3 pline)
line = '("4" "Done")
len_line=length(line)
item5=nth(len_line-1 line)
item4=nth(len_line-2 line)
if( (item2 == item4); compare fails and executes else part but if condition should pass as item2 & item4 has "4"!
then
lista = list(item1 item2 item3 item4 item5)
else
item5 = "UNKNOWN"
lista = list(item1 item2 item3 item4 item5)
);end if
printf("List is %L\n" lista)