In many other languages, for example C, Java, dBase, Visual FoxPro, or Visual Basic there is a CASE structure which allows for much cleaner code under some circumstances. If you have different blocks of code that need to be executed dependent on the values of a variable, CASE structure is much cleaner than nested ifs.
For example, in FoxPro
DO CASE
CASE (Logical Expression 1)
Block 1
CASE (Logical Expression 2)
Block 2
CASE (Logical Expression 3)
Block 3
OTHERWISE
Block 4
ENDCASE
This is much cleaner code than either multiple 'if then > else" structures or, worse, nested "if then > else" structures.
Any possibility of including this?
Addition of CASE statements
Moderator: Martin
Re: Addition of CASE statements
+1 too.
The keywords are there, let's see if Martin have the time to look it. He's busy lately to keep up with google's requirement for accessibility and notification channel.
The keywords are there, let's see if Martin have the time to look it. He's busy lately to keep up with google's requirement for accessibility and notification channel.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.