No. This is by design.Btw, is it possible to add in an if statement ":" like in vb?
It is already implemented with Debug (rapid) mode.And also what could be a great update to the next version is to be able to test a code without to install on the phone. Like i can do in java or xcode. Sometimes i only want to test a code and get the result to the log so no need to connect phone to run it... would be great to have such a feature.
It is already implemented with Debug (rapid) mode.
You need to install the app. But later when you modify the code it doesn't need to be reinstalled (not in all cases).
Didn't you notice it in B4i? That you don't need to approve the installation each time you run?
which part of that 3 hours movie are you refering too? I don't have that much time at work to look at all of that![]()
I like the idea.
eiter a seperate code panel that compiles to a JAR and outputs to the log
or
use something like in MS (transact)SQL where you select the lines of code and press execute
now I have a _test folder with a lot of mini projects just because of small routines I wrote to help the forum users.
it seems that from the moment when ELSE is used it forces you to use multiline.
this works then
B4X:If x<=10 Then Log(1):Log(2) Else Log(3):Log(4) End If End Sub
Sub IIf(Condition as boolean, TruePart as object, FalsePart as object) as object
If Condition then
Return TruePart
Else
Return FalsePart
End If
End Sub
Select x
Case 0 : Difficulty=5 : StartGame
Case 1 : Difficulty=8 : StartGame
Case 2 : Difficulty=9 : StartGame
Case 3 : Difficulty=11 : StartGame
Case 4 : GameWon
End Select
Many languages allow stacking statements on a single line. I personally never use it simply because it makes the code so much harder to read (for me at least) later on. I rarely even use single line IF statements hehe.
txtInput1.Visible = True : txtInput1.Text = ""
txtInput2.Visible = True : txtInput2.Text = ""
txtInput3.Visible = True : txtInput3.Text = ""
txtInput4.Visible = True : txtInput4.Text = ""
txtInput1.Visible = True
txtInput1.Text = ""
txtInput2.Visible = True
txtInput2.Text = ""
txtInput3.Visible = True
txtInput3.Text = ""
txtInput4.Visible = True
txtInput4.Text = ""
If finishCD = 210 Then Player_Jump(-Player.Jump_Velocity * 0.33) : If soundon = 1 Then mpjump.Play