Skip to content

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.
  • kgould Offline
  • Posts: 5
  • Joined: Fri Nov 08, 2013 11:20 am

If Statements with Rowsets

Post by kgould »

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 Offline
  • Support Specialist
  • Posts: 590
  • Joined: Tue Jul 17, 2012 2:12 pm
  • Location: Phoenix, AZ
  • Contact:

Re: If Statements with Rowsets

Post by Support_Rick »

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
Post Reply