Tony. Member Dec 4, 2021 #1 I have a list of numbers in label1 [7,2,9,5]. How do I take the first number in the list and compare it to the IF statement? For example B4X: If numbers.get(0) = 7 Then ........ End If I hope I have explained myself
I have a list of numbers in label1 [7,2,9,5]. How do I take the first number in the list and compare it to the IF statement? For example B4X: If numbers.get(0) = 7 Then ........ End If I hope I have explained myself
Erel B4X founder Staff member Licensed User Longtime User Dec 5, 2021 #2 Tony. said: I have a list of numbers in label1 [7,2,9,5] Click to expand... I guess that Label1.Text = "[7,2,9,5]" B4X: Dim numbers As List = Label1.Text.As(JSON).ToList If 7 = numbers.Get(0) Then Upvote 0
Tony. said: I have a list of numbers in label1 [7,2,9,5] Click to expand... I guess that Label1.Text = "[7,2,9,5]" B4X: Dim numbers As List = Label1.Text.As(JSON).ToList If 7 = numbers.Get(0) Then