Dynamic classes conditional on a calculated integer.

Hello, My problem is that I want the background to changes colour when calculated. I have managed to do this using strings and dynamic classes but when I converted the attributes to a integer and try to adapt the dynamic class it does not display the background colour associated with that number.   any suggestions on either how to get the above to work or how to do mathematical functions on a string attribute as i have the infrastructure in place with the dynamic class.   Thanks, Jack    
1 answers

Hi Jack,


You can use the parseInteger or parseDecimal functions inside the dynamic class editor as such:

See https://docs.mendix.com/refguide/parse-integer/ and