Syntax quesiton

Hi there, I have a simple question regarding syntax, I tried to look through the forum but couldn't find a similar example, hope someone can help me understand the syntax a bit better.

Why can I do this:
"[default]BRP/Overview/PLC Outputs/BRP3/"+{Root Container.BRP3.O_0_0_XX.name}

but not this:
"[default]BRP/Overview/PLC Outputs/"+{Root Container.BRP3.name}"/"+{Root Container.BRP3.O_0_0_XX.name}

I get the following error:

Syntax Error on Token: 'STRING CONST' (Line 1 , Char 66)

It looks like you forgot one + sign.

"[default]BRP/Overview/PLC Outputs/"
+{Root Container.BRP3.name}"/"
+{Root Container.BRP3.O_0_0_XX.name}

should be

"[default]BRP/Overview/PLC Outputs/"
+{Root Container.BRP3.name}
+"/"
+{Root Container.BRP3.O_0_0_XX.name}
2 Likes

I personally like the concat expression for this: concat - Ignition User Manual 8.1 - Ignition Documentation rather than using +
But @zacht has it right.

4 Likes

omg :man_facepalming:t4:, thank you