Open topic with navigation

TIBCO GridServer® 7.1.0

# Variable Substitution

Variable references are expanded within quoted strings in all contexts. For example, after

    a = "foo"
    b = "$a fighters"

the value of `b` is `"foo fighters"`. Use curly braces to separate a variable name from the adjacent non-whitespace text:

    b = "${a}bar"            # b contains "foobar"

Inside quotation marks, represent a quote by escaping it with another quotation mark. Also, inside quotation marks, represent the dollar sign character by escaping it with another dollar sign. For example:

    a = """hello"""            # a contains "hello"
    b = "$$100"            # b contains $100

The backquote can also be used to assign the output of a shell command to a variable. For example:

    datetime = ‘date‘

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO GridServer®

Copyright © 2001-2022. TIBCO Software Inc. All Rights Reserved.