Error while compiling automation script

9 years 2 months ago #2253 by vickeyhort
By the way, is this C language or C++? Can I use the same style as I used while programming Arduino sketch?

Please Log in or Create an account to join the conversation.

9 years 2 months ago #2255 by NightOne
so I learn something new as well it seems that the variables are stored in the database as strings... meaning a b c etc.. so the program doesnt know what greater then or less then means.

automation is writen in C# so any C# code should work... as far as I know it was also compiled in mono to create the webserver.

You would have to convert the n.Value to an interger then compare them with a value...I am looking online now for help and I will try some ideas on my automation

Please Log in or Create an account to join the conversation.

9 years 2 months ago - 9 years 2 months ago #2256 by NightOne
you can convert the string to a int with

if (Int32.Parse(n.Value) > 50)
The following user(s) said Thank You: vickeyhort

Please Log in or Create an account to join the conversation.

9 years 2 months ago #2259 by vickeyhort
Thank you so much NightOne for being so kind and helpful.

Please Log in or Create an account to join the conversation.

Time to create page: 0.189 seconds

Forum latest

  • No posts to display.