Originally Posted by viper161616
Thanks for your help so far. My bad about the code tags.
Basically I want to be able to load up an array list with a bunch of simple statements that you might typically find in an if statement so that I can loop through them and evaluate them as a bool. I just need fairly simple commands such as >, <, |, &, +, - ,/, *. I don't believe their is an equivalent to the eval function in c#. It's not essential it would just make things simpler if I could just arraylist.add(a bunch of things) then loop through the arraylist and influence a parallel arraylist based on how the first evaluated.
If this isn't possible is there anyway to store just an operator in an arraylist/array ?