Same
Checks if the value equals another given value
-
return (boolean)
In your code
if(v::same('A', 'A')) {
echo 'Yay, valid!';
}
In Panel fields
fields:
example:
label: Example field
type: text
validate:
equals: A