Dear Dyanmo experts:
Im trying to use if else, and tried to look it up online, and it didn’t work, I didn’t seem to catch the problem with my code, can anyone help me?
I have a list of points and I want to translate each points with different types of lists
for instance:
there are two types of points I want to translated to
LC_P_X = [-10,-10,-5,-5,5,5,10,10]; (for x axis)
LC_P_Y = [0,4,4,5,5,4,4,0]; (for y axis)
HC_P_X = [-4,-4,4,4]; (for x axis)
HC_P_Y = [5,15,15,5]; (for y axis)
but I wanted to be trigger by strings [“a”,“b”,“c”,“d”,“e”] with if else
if I pick “a” then use LX_PY and LC_P_X to translate
if I pick “b”,“c”,“d”,“e” then use HC_P_X and HC_P_Y to translate
others will be null
I am kinda learning right now and I know that maybe I can use a?b:c to do this but I wanted to try to use the if else in order to let me understand about other things like while loop or for loop,
Many Thanks!!