Hi,
i have a string like "A < 30 => B = 40"
I want to evaluate this string in my program.
I can split this string in two pieces..."A < 30" and "B = 4"
There is a way to evaluate these strings?
I need something like
Code:
if ( eval(@"A < 30") ) {
eval(@"B = 4");
}
I know that obj-c isn't a scripting language..but if can i evaluate stringByEvaluatingJavaScriptFromString...maybe can i write these strings in javascript?