Announcement
Collapse
No announcement yet.
PluriBASIC - Conditional #IF statement for form output.
Collapse
X
-
I have been traveling a lot. If you wish to have PluriBASIC send your email address via PM.
-
Also, I have decided to not renew the website and release PluriBASIC 6 as a donation-based IDE. I will prepare a new installer and post it here one of these days.
Leave a comment:
-
PluriBASIC - Conditional #IF statement for form output.
Last night I implemented a new feature that will make things easier for working with PHP (for the moment, other platform implementations are planned to follow). I wanted this feature for a long time and i finally added it. This feature is #IF statement support for HTML support.
So far, the #IF statement was implemented for source code generation (in the binaries), source code compilation (in the main code) and now it is implemented also for HTML code.
Now you can add #IF statements in your HTML chunks and FORMOUT() will output the code depending on the conditions and the run-time variables.
For example, lets say you have a form like this:
Code:#FORM Conditionals, "conditionals.html"
Code:#IF Cfg.values = "This is cool" <div>First block, [$.cool].</div> #ELSEIF SecondBlock <div>Second block, [$.cool].</div> #ELSE <div>Third block, [$.cool].</div> #ENDIF
Code:' Declares some variables. Local SecondBlock as long Local Cfg as Config ' Sets up some variables at run-time. Cfg.values = "This is cool" SecondBlock = 2 $.cool = "This feature is a time saver" ' Outputs the form according to that the variables contain. CALL FORMOUT(Conditionals)
Code:First block, This feature is a time saver.
Code:Cfg.values = "This is too cool"
Code:Second block, This feature is a time saver.
Code:SecondBlock = 0
Code:Third block, This feature is a time saver.
This version of PluriBASIC is not uploaded, if you like this feature you can send me an email to get it.
Tags: None
Leave a comment: