If Statements with Rowsets

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
2 posts Page 1 of 1

kgould

Posts: 5
Joined: Fri Nov 08, 2013 11:20 am

Post by kgould » Tue Jun 30, 2015 4:51 pm
I would like to test two conditions with row sets and it keeps complaining the test value is incorrect.

${ProductRowSet[1]} eq ${VarRowSet[1]} && ${VarAttrbRowSet[2]} eq ${VarRowSet[3]}

Is this something that can be done in one statement or do I need to do two if statements?

Thanks,

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Tue Jun 30, 2015 4:58 pm
Assuming you're on GADirector verion 4.0+ ... Try something like the following:

${ ( ProductRowSet[1] eq VarRowSet[1] ) and ( VarAttrbRowSet[2] eq VarRowSet[3] ) }

All variable comparisons can be made within the same ${ } bracket structure. No need for replicated values.

Prior to 4.0, this would be something like this:

( ${ ProductRowSet[1] } eq ${ VarRowSet[1] } ) and ( ${ VarAttrbRowSet[2] } eq ${ VarRowSet[3] } )
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1