Skip to content

Kirby 5.0.4

min

Checks if the value is higher than the minimum value

V::min($value, float $min): bool

Parameters

Name Type Default
$valuerequired mixed no default value
$minrequired float no default value

Return type

bool

In your code

if (V::min(10, 5)) {
  echo 'Yay, valid!';
}

In fields

fields:
  example:
    label: Example field
    type: text
    validate:
      min: 5