Android Question Do Designer Scripts support Else If?

coder22

Member
Licensed User
Longtime User
Hi, in my designer script I keep getting this compile error:

\designerscripts\LS_1.java:17: error: illegal start of expression
;}else if

So I'm wondering if Else If is supported there? Or is it ElseIf maybe? Thanks!
 
supported since version 2.30 up,I had used it.
If 100%x > 100%y Then
' เขียนโปรแกรมจัดการในแนวนอน
else
' เขียนโปรแกรมจัดการในแนวตั้ง
end If
 
Last edited:
Upvote 0
'Else If' should be supported. Can you post the script you are trying to run?

If ActivitySize < 4.0 Then
AutoScaleRate(0.01)
Else If ActivitySize >= 4 AND ActivitySize < 7 Then
AutoScaleRate(0.4)
Else If ActivitySize >= 7 AND ActivitySize < 9 Then
AutoScaleRate(0.8)
Else ' ActivitySize >= 9
AutoScaleRate(0.87)
End If

The error occurs at the first Else If. Before adding the else if's, Else worked fine. B4A v. 2.52
Thanks Erel
 
Upvote 0
Back
Top