Skip to content

Kirby 3.7.5


Smart version of echo with an if condition as first argument

e(mixed $condition, mixed $value, mixed $alternative = null)


Name Type Default Description
$condition * mixed
$value * mixed The string to be echoed if the condition is true
$alternative mixed null An alternative string which should be echoed when the condition is false