Vely logo what is  |  why  |  install  |  tutorials  |  examples  |  documentation  |  license  |  about
Current release 10.4.36 (Beta). This page last updated on Jul 01 2022

Output construct



PURPOSE:


Output text.

SYNTAX:


@<text to output with inline Vely constructs>

!<text to output verbatim>

DESCRIPTION:


Outputting free form text from Vely code is done by starting the line with "@" or "!". The text is output unencoded to the client.  

With "@" construct, any inline_code executes and any output from those constructs is output.

With "!" construct, all text is output verbatim, and any inline code is not executed. This is useful when the text printed out should not be checked for any inline_code (such as << ... >>).

All trailing whitespaces are trimmed from each line. If you need to write trailing whitespaces, with "@" construct you can use p-out as inline_code. Maximum line length is 8KB - this is the source code line length, the actual run-time output length is unlimited.

EXAMPLES:


Outputting "Hello there" from Vely code:

@Hello there

You can use other Vely constructs inlined and mixed with the text you are outputting:

char *weatherType="sunny";
@Today's weather is <<p-out weatherType>>

which would output

Today's weather is sunny

With "!" construct, the text is also output, and this example produces the same "Hello there" output as "@":

!Hello there

In contrast to "@" construct, "!" construct outputs all texts verbatim  and does not execute any inline code:

char *weatherType="sunny";
!Today's weather is <<p-out weatherType>>

which would output

Today's weather is <<p-out weatherType>>


SEE ALSO:


Output ( finish-output   output_construct   pf-out   pf-url   pf-web   p-out   p-num   p-url   p-web  )  SEE ALL (documentation)



Copyright (c) 2017-2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. This web page is licensed under CC-BY-SA-4.0.