1
Answer

can we use string as expression in if statement in vb.net

satheesh babu

satheesh babu

14y
2.2k
1
Hi all,

         I want to use if statement and i am reading condition/expression from text file and storing in a string/object variable.

now i want use that string/object as my condition in if statement like below.

Dim sourceLogic as String ="reading from a text file"

if sourceLogic then

'do something

End If

can we use like above.

please help me.
Answers (1)