ok I searched the net for an hour now trying to find if there is even a solution for my question. The question is: Is there a way to inject a string that will be parsed into the statement you put into an if clause?
The scenario: I'm building a small software that parses information from a browser. Each browser represent the data differently and because of that I want the IF statement I have to ask a different question depending on the browser, but I don't want to ask all the questions with IF ..... ELSE IF.... and all that because it'll be wrong.
If the user comes from FF the question will be if the page contains a certain string. If the user comes from IE the question will be if there are 100 rows of text.
The questions are different and I want to know if I can send the statement from outside the function I'm coding to parse the information from all the browsers or will I have to ask the question depends on the browser?