print — Outputs a string
void print(str);
string str;
Allows to print (insert on the Biferno script output) the value of a variable, a constant, or the result of an expression
Parameters
the string to print
Instead of the print keyword it is possible to use the dollar symbol, $$. Using the dollar symbol before and after a variable name, its value can be printed outside of the Biferno code delimiters. This is shown in the following example, where the “val” parameter is passed to the “newpage.bfr” page and takes the value of the myString variable, which is output on the HTML page using the $$ symbol set before and after the variable name. The delimiter tags of the Biferno code are not used. The next row of code shown an alternative manner of obtaining the same result using the print function.
<? myString = "Hello World" ?> <html><body> <? //Print the value of the myString variable print(myString) //Same effect as previous instruction $$myString ?> <br> <a href="newpage.bfr?val=$$myString$$">Nuova Pagina</a> <a href="otherpage.bfr?val=<? print(myString) ?>">Other Page</a> </body></html>