0
How to put if condition on a specific word in input
suppose in the text box I write "add 2 and 3" then the output should be the sum and if I write "subtract 2 from 3" then the output should be the subtraction. then how to put the condition on the words add and subtract ?
2 Answers
+ 3
in which language?
in PHP you can use strpos and check if it's return value is not false (!==).
0
in c#