Defining properties

Where would I define properties in my code?
I know to use the Get property block but I don’t know where to define it.


Please elaborate further. What do you want to define.

1 Like

I am attempting to define my 6 properties, but I do not know how.
I already said I was trying to define properties.

What are you trying to do?

1 Like

defining properties.

2 Likes

define my properties. I already said this. I do not know where to define them.

1 Like

Use “set property” to? In the block code?

Or have a counter increase one? You’re already “defining” them in your code from what I can see.

1 Like

Oh you need to check what type it is number/text then give it a name

1 Like

I try to drag in “Card 1” into the if statement “if true =” but It rejects it.
I assume it needs to be defined. I want to know how and where.

First off, try dragging “get property | Card 1” into the logic block. This makes the system know that you’re talking about your property.
Also, make sure you have a property device somewhere in your map for all of these different “cards”.

1 Like

I do have 6 property devices, thanks for checking :smiley:
Would I have to do this every time I use the property?

Yes. Because of how the system is built, there’s no need to define the properties in the code, because that function is essentially carried out by the device.
Adding the “get property” block is the same as saying var in other coding languages.
And feel free to mark a solution if you’ve found an answer!

2 Likes

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