I generate If Else Expressions in the following format
If(X > 10) Then Fly = True Else Fly = False If(X > 9) Then Fly = True Else Fly = False If(X > 8) Then Fly = True Else Fly = False If(X > 7) Then Fly = True Else Fly = False If(X > 6) Then Fly = True Else Fly = False
I was wondering. Can I execute these expressions at runtime? I do not know if my question is clear.
I will add an example
String = ""; for(int i = 0; i < n; i++) { string ="if(x > 10){Fly = true;} else {Fly = False;}"; Execute (Expression HERE)! }
Is it possible to do this? lol thanks. Hani.
source share