Skip to main content

Using Filters in XanoScript

Filters in XanoScript are applied right after the target value using a | pipe character. As an example, we have a text string stored in a variable called x1. We want to apply a capitalize filter to it. This is what defining the variable would look like in XanoScript.
When we add the filter, it looks like this.
If a filter has parameters required to use it, we can use : characters to add and separate them. As an example, we’ll take our text string and use the concat filter to append additional text to it with a separator. "hello" will become "hello, world". The concat filter asks for two parameters: a value and a separator. We’ll use : to separate each parameter.
You can add multiple filters by separating each one with pipe characters.
You can also nest filters. In this example, we’re using the capitalize filter specifically on "world" inside of the concat filter.

Filter Reference

Manipulation

 

Math

 

Timestamp

 

Text

 

Array

 

Transform

 

Comparison

 

Security