Hi Guys,
I have a requirement in my project is how to check string of boolean expression is true or false.
Example :
Declare @strBoolean nvarchar(1000)
set @strBoolean ='FirstName=FirstName AND LastName=LastName'
Note that we don't have actual expression like below:
'FirstName'='FirstName' AND 'LastName'='LastName'
First I need to manipulate this string and than i can pass it further to a function to evaluate True/False.
I want to check @strBoolean is true or false
ie if(@strBoolean)
print('true')
else
print('false')
Please help me to solve the problem