Can anyone tell me how to convert a string variable to boolean
Ihave a variable named VarLoc which is string datatype
In expression I want to give condition like
VarLoc == "1234"?False:True
its giving error because of converting string datatype to boolean.
This is how I would approach this problem: Create a new variable named BoolVarLoc (or whatever) of data type Boolean and give it this expression:
@[User::VarLoc] == "1234" ? False : True
Then you have two variables - one of type String and one of type Boolean. It works as desired for me in my test package.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?