On Tuesday, January 16, 2018 at 6:36:17 AM UTC-6, Pal Csanyi wrote:
>
> Hi,
>
> I'm new to Leo.
>
> I am trying to create a Bash script with Leo.
> I am using @file directive:
>
> @file NameOfBashScript
> | - node1
> | - node2
> | - node3
> | | - node3.1
> | | - node3.2
> | - node4
> | - node5
>
> Here I wish to exclude from NameOfBashScript file the node3.2 .
> How can I do that?
>
Use a section reference. Change the headline from "node3.2" to "<< node
3.2 >>".
Then "disable" << node 3.2 >> using the if/fi construct:
if (0, or whatever the syntax is):
<< node 3.2 >>
fi
You can generalize this pattern:
if 0/whatever:
<< ignored nodes >>
if
The << ignored nodes >> node should contain just one @others line. All
children of the << ignored nodes >> node will fall in the range of the
if/fi. Note that indentation is preserved, as is required by the similar
Python construct.
HTH.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.