Toggle navigation
Smartsite Releases
Smartsite Manager
User Manual
Features & Modules
Install & Config
Advanced
SXML
Smartsite Documentatie
>
SXML
>
Examples
>
Viper Examples
>
Math Class
>
Math Max and Min Example
Smartsite SXML
Copy Code
{math.min(math.max(1, 2), 3)}
Example Result
Copy Code
2
SXML
Macro
Macro Parameters
Macro Parameter Properties
Vipers
SXML Data Types
Examples
Macro Examples
Viper Examples
Buffer Class
Channel Class
Char Class
Cms Class
ContentType Class
Convert Class
Database Class
DataTable Class
DateTime Class
Debug Class
DigiD Class
Env Class
FileSystem Class
For Class
General Viper Examples
HTML Class
Image class
ItemData Class
Json Class
License Class
Locale Class
Logging Class
Math Class
Math Abs Example
Math Acos Example
Math Asin Example
Math Atan Example
Math Ceiling, Round and Floor Example
Math Cos Example
Math E and Exp Example
Math Hex Example
Math Log Example
Math Log10 Example
Math Max and Min Example
Math Max/Min values
Math Pow Example
Math Random and SetRandomSeed Example
Math Round and E Example
Math Sign Example
Math Sin Example
Math Sqrt Example
Math Tan Example
Personalization Class
Placeholder Class
RenderTemplate Class
Request Class
Scf class
Security Class
Site Class
Smi Class
SmiData Class
Spice Class
Sql Class
String Class
SXML Class
Sys Class
This
Translation Class
Url Class
User Class
Viper Named Parameters
XhtmlPage Class
Macro Shared Parameter Examples
Razor Examples
Tips & Tricks