# What is a dig in k-lang?
dig is the same as get on an Option data-type, so to get the value of an optional field use dig
Note: Use dig only when you are sure the value exists
Example:
command addParticipant{
input(lotteryName:String,participantName:String,email:String?)
pre{
condition validEmail =>
present(input.email) -> genericDomain.isValidEmail(input.email.dig) failing "Email is invalid."
}
...
}