Upvote 1

> or < function for characters

Known Robert Dew 2 years ago

I want to compare two radio boxes that each output A, B, C, D, or E so I can run different responses if one output is less than the other. If the output was numbers I can use the logical functions < and > to quickly do what I need. Sadly it seems that JIM does not understand the condition when (RB1 < RB2) if RB1 and RB2 contain string values instead of number values.

It is a pain to hardcode each possible string option to manage the logic, so does anyone have a quicker workaround? The best I can come up with is to create other variables and set values to 1, 2, 3, 4, or 5 based on the RB1 and RB2 values, but this seems like too much hard coding

Replies (1)
photo
1

I understand that what you want is to compare two strings alphabetically. Unfortunately Justinmind does not support it at the moment, I have created a ticket to be able to do it in future updates. There is a way to compare strings and it is with the Count function, which counts the number of characters in the string, it would only serve to compare string sizes.

Best regards

Leave a Comment
 
Attach a file