iori2500
New member
- Joined
- Sep 24, 2020
- Messages
- 2
- Programming Experience
- 5-10
Hi,
Is there a way for C# to convert user input text into a programming logic
e.g.
Validate( "ABC = XYZ" ) -> returns FALSE
Validate( "ABC = ABC" ) -> returns TRUE
Validate( "10 + 20 - 5" ) -> returns 25
Validate( "(ABC = ABC) AND (10 + 20 = 15 + 15) " ) -> returns TRUE (this is more complex, but you get the idea)
Thinking of Python-like single line logic validation...
Is there a way for C# to convert user input text into a programming logic
e.g.
Validate( "ABC = XYZ" ) -> returns FALSE
Validate( "ABC = ABC" ) -> returns TRUE
Validate( "10 + 20 - 5" ) -> returns 25
Validate( "(ABC = ABC) AND (10 + 20 = 15 + 15) " ) -> returns TRUE (this is more complex, but you get the idea)
Thinking of Python-like single line logic validation...