lineBreak: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 9: Line 8:


|gr2= Structured Text |GROUP2=
|gr2= Structured Text |GROUP2=
____________________________________________________________________________________________


| Creates a structured text containing a line break. |DESCRIPTION=
| Creates a structured text containing a line break. |DESCRIPTION=
____________________________________________________________________________________________


| [[lineBreak]] |SYNTAX=
| [[lineBreak]] |SYNTAX=


| [[Structured Text]] |RETURNVALUE=
| [[Structured Text]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[hint]] [[composeText]] ["First line", [[lineBreak]], "Second line"];</code> |EXAMPLE1=
|x1= <code>[[hint]] [[composeText]] ["First line", [[lineBreak]], "Second line"];</code> |EXAMPLE1=
|x2= <code>[[hint]] [[str]] ([[composeText]] [<nowiki/>[[lineBreak]]] == [[parseText]] "<nowiki><br/></nowiki>"); // true</code> |EXAMPLE2=
|x2= <code>[[hint]] [[str]] ([[composeText]] [<nowiki/>[[lineBreak]]] == [[parseText]] "<nowiki><br/></nowiki>"); // true</code> |EXAMPLE2=
____________________________________________________________________________________________


| [[composeText]], [[parseText]], [[Structured Text]], [[text]], [[image]], [[endl]] |SEEALSO=
| [[composeText]], [[parseText]], [[Structured Text]], [[text]], [[image]], [[endl]] |SEEALSO=

Revision as of 02:49, 17 January 2021

Hover & click on the images for description

Description

Description:
Creates a structured text containing a line break.
Groups:
StringsStructured Text

Syntax

Syntax:
lineBreak
Return Value:
Structured Text

Examples

Example 1:
hint composeText ["First line", lineBreak, "Second line"];
Example 2:
hint str (composeText [lineBreak] == parseText "<br/>"); // true

Additional Information

See also:
composeTextparseTextStructured Texttextimageendl

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section