Quantcast
Channel: Toad Data Point Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2544

AUTOMATION If Condition for String Variable

$
0
0

Hi All,

I'm using TDP 4.1 and would like to know if it is possible to create an If.. Condition.. branch based on a variable with a string data type.  I have created a variable #LIST_TYPE# that can have 1 of 3 values:   (PROMO, LOC, or PIF)

When I use any of the following expressions #LIST_TYPE#='PROMO'  ,  #LIST_TYPE#="PROMO"  or  #LIST_TYPE#=PROMO   I receive the error:  If_1 - 'PROMO=PROMO' cannot be converted to boolean.    during execution of the automation script.

I will switch to a numeric variable, if I have to, but I wanted to be certain that there wasn't something that I'm overlooking first.

Thanks!

-Marco


Viewing all articles
Browse latest Browse all 2544

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>