What do you mean by 'two cross-tables with two columns'? I see two single-column tables. Why do you not have a single table with two columns?
number2>=10?"green":"red" is not a valid Ignition expression. It would be more like, if(number2 >= 10, "green", "red")
(Note the use of spaces for legibility.)
Maybe you mean that you are using that line in a script transform. not an expression.
Where does the red-white-green display go? In a third column of the table or elsewhere? Is it a summary counter for in / out of tolerance? If so, what does white represent?
The symbol for kilogram is kg. Your readout is showing kelvin-grams. Capitals matter.
Please edit your original post to make it clearer and show where you are using that code. Please try to address all the points raised.
You have tagged your post as Perspective (but the question has nothing to do with Perspective). This has caused confusion. I suggest that you remove that tag. Report expressions don't use normal Expression Language.
To quote another user use the > quotation syntax or press the ” blockquote button.