0 Members and 3 Guests are viewing this topic.
What are inline if statements?
"True"->Str1"False"->Str2Disp IIf(A=B,Str1,Str2)
"True"->Str1"False"->Str2Disp ((A=B)->C*(°Str1)+(not(C)*(°Str2)))
.If condition, true, falseiif(A=B,C,D).If not(condition), true, false!iif(A=B,D,C).If condition, trueiif(A=B,C).If not(condition), true!iif(A=B,D)
As small as I could get it, 345 bytes of executable code. Code: [Select]:.SMILE:[004466000000817E]->Pic1:DiagnosticOff:0->X->Y:Repeat getkey(15):ClrDraw:getKey(3)-getKey(2)+X:!If +1:+1:End:-1:Pt-On(min(,88)→X,getKey(1)-getKey(4)+Y+(=⁻1)min(,56)→Y,Pic1):DispGraph:End
:.SMILE:[004466000000817E]->Pic1:DiagnosticOff:0->X->Y:Repeat getkey(15):ClrDraw:getKey(3)-getKey(2)+X:!If +1:+1:End:-1:Pt-On(min(,88)→X,getKey(1)-getKey(4)+Y+(=⁻1)min(,56)→Y,Pic1):DispGraph:End
"ABC"[1C]""→Str1
You can add hex in strings?
"ABC"[1C00]→Str1
"123"[40]"456"