Skip to content

Multi Line Controls

Kyle Johnston edited this page Nov 14, 2021 · 1 revision

Advanced: Multi-Line Control

In addition to single-line controls described in the README, a block of code can be controlled to specific devices using multi-line cntrols. To use a multi-line control, place the code to be controlled between two tags.

COMMENT_SYM{begin filetailor DEVICES...}
(Code being controlled)
COMMENT_SYM{end filetailor DEVICES...}

Note: multi-line comment symbols such as /* and */ from C are not supported. Multi-line comments are implented as multiple single-line comments.

Example: multi-line control

How the code should be written on device1 or device2:

#{begin filetailor device1 device2}
export $ABC="/home/folder1/abc"
export $ABC="/home/folder1/abc"
#{end filetailor device1 device2}

How the code would look on any other device:

#{begin filetailor device1 device2}
# export $ABC="/home/folder1/abc"
# export $ABC="/home/folder1/abc"
#{end filetailor device1 device2}