{"name":"composeText","operator":null,"title":"composeText","type":"command","url":"https://community.bistudio.com/wiki/composeText","revid":336896,"updated":"2023-01-04T16:43:56Z","groups":["Strings","Structured Text"],"status":"ok","replaced_by":[],"games":[{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Creates a Structured Text by joining the given structured or plain text arguments.","syntaxes":[{"syntax":"composeText arguments","since":null,"effect":null,"exec":null,"params":[{"name":"arguments","type":"Array of String and/or Structured Text","optional":false,"default":null,"description":"use Structured Text where necessary (see #Example 2)","types":["Array","String","Structured Text"],"since":null,"text":"arguments: Array of String and/or Structured Text - use Structured Text where necessary (see #Example 2)"}],"returns":{"type":"Structured Text","types":["Structured Text"],"description":null,"text":"Structured Text"},"form":"unary","operator":null,"left":null,"right":{"text":"arguments","types":["Array","String","Structured Text"]}}],"examples":[{"text":"```sqf\nhint composeText [\"Image: \", image \"\\a3\\Data_f\\Flags\\flag_Altis_co.paa\"];\n```","code":["hint composeText [\"Image: \", image \"\\a3\\Data_f\\Flags\\flag_Altis_co.paa\"];"]},{"text":"```sqf\nhint composeText [\"line1\", \"<br/>\", \"line2\"];        // result displayed in one line\nhint composeText [\"line1\", lineBreak, \"line2\"];    // result displayed in two lines\n```","code":["hint composeText [\"line1\", \"<br/>\", \"line2\"];\t\t// result displayed in one line\nhint composeText [\"line1\", lineBreak, \"line2\"];\t// result displayed in two lines"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Structured Text","formatText","image","lineBreak","parseText","text","setAttributes"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Strings","Command Group: Structured Text","Introduced with Operation Flashpoint: Elite version 1.00","Operation Flashpoint: Elite: New Scripting Commands","Operation Flashpoint: Elite: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}