We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
set is used to assign an expression to a variable. You may omit the set keyword if you want.
set
An expression is typically a string or the result of an Objective-C method call.
{% set foo = [NSMutableDictionary dictionary]; foo[ @"key"] = @"a value" %} {{ foo[ @"key"] }}
Output:
a value