I am trying to create a value that can be called from a data source, this value will determine what another variable receives. That sounds confusing, but basically I want my variable to be set to either of the following values (depending on what the data source says):
variable = variableValue/2;
or
variabel = 0;
variableValue is a property that can be changed dynamically. Anyway how can I use a boolean or int value coming from my data source to select either one of the options above. Do I make an enum?
I’m sure there is a simple solution, but it’s escaping me. Thanks for reading!
I don’t understand your question completely but can’t you check that with an if construction?