Showing results for 
Search instead for 
Did you mean: 

Assigning string values to each numerical value of an array

Go to solution

@JÞB wrote:

@Wolleee wrote:

I would try something like this. You had several alarm elements, i just put those into an array, arrays are generally much easier to work with than several of the same type elements.  


Alarm true case.PNG

Alarm False Case.PNG

Use an enum type def and those strings can travel places without having to update the string array constants in several places each time you add a new alarm


(Look ma no case struscture to hide code in)

I originally was going to suggest this, minus the enum, but i wasnt sure what version that conditional terminal became available Smiley Frustrated I should have just dont a quick search. Much clearner code though.

0 Kudos
Message 11 of 11