Skip to content

Kirby 3.8.4

e()

Smart version of echo with an if condition as first argument

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

Parameters

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