Suggested answer

%%[ ]%% delimits a multi-line AMPscript code block where you can write SET, VAR, IF, and function calls. @variable is the variable reference syntax — variables are declared with VAR @name and assigned with SET @name = value. Outside a block you reference a variable inline as %%=@name=%%. You can also use inline expressions with %%=FunctionName(args)=%% without opening a full block. The key rule is that executable statements (SET, IF, FOR) must live inside %%[ ]%%, while output references can appear anywhere in the content using the %%=...=%% inline syntax.

Practice content for interview preparation; not an official vendor answer. Verify details against current product documentation.

Community comments (0)

No comments yet.

Sign in or create a free account to add a comment. Comments are moderated before they appear.

Plain text only, 3–2000 characters. A moderator reviews every comment before it is published.