How to change state from string to numeric

Hi,

I read out value from item:

Nap_allas=items.LocalSun_Azimuth.state

But it is string
I want to use it as a numeric value:

if (Nap_allas>180)

thanks

A little more context might be useful here, but the most general answer to your questions is:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.