NCP-MCA · Question #25
What is the correct syntax for using a macro within a Calm blueprint?
The correct answer is A. @@{calm.object}(@@. A macro is a placeholder for a value that is resolved at runtime. Macros can be used to reference various Calm objects, such as variables, secrets, credentials, tasks, and services. The correct syntax for using a macro within a Calm blueprint is @@{calm.object}(@@, where…
Question
What is the correct syntax for using a macro within a Calm blueprint?
Options
- A@@{calm.object}(@@
- B%calm.object%
- C{{calm.object}}
- D$calm.object$
How the community answered
(25 responses)- A92% (23)
- B4% (1)
- D4% (1)
Explanation
A macro is a placeholder for a value that is resolved at runtime. Macros can be used to reference various Calm objects, such as variables, secrets, credentials, tasks, and services. The correct syntax for using a macro within a Calm blueprint is @@{calm.object}(@@, where calm.object is the name of the object to be referenced. For example, @@{username}(@@ would resolve to the value of the username variable at runtime. The other options are incorrect syntaxes for macros and would not be resolved by Calm.
Topics
Community Discussion
No community discussion yet for this question.