has_symbol
Synopsis
@has_symbol(String) -> Boolean
Description
Checks whether the given symbol is associated to the object.
info
Available in Contextal Platform 1.0 and later.
tip
You can find all symbols and their descriptions for every backend in the Data Processors and Malware Scanning sections.
Parameters
The symbol value (String
) or regex
/iregex
/starts_with
.
Return value
Boolean: true
if the symbol is present, false
otherwise.
Examples
@has_symbol("TOOBIG")
- This will match objects, which got the
TOOBIG
symbol assigned, meaning they exceeded the size limits set in the backend configuration.
@has_symbol(starts_with("INFECTED-"))
- This will match objects, which were tagged by the antivirus software as infected.