Explore the community Forums Lectora Lectora Questions & Answers Change null value on entry field Reply To: Change null value on entry field

#369571 Score: 0
Profile photo of Stan Miller
Stan Miller
Member
beginner
intermediate
LUC16 Attendee
wise owl
contributor
curious george
friend finder
LUC17 Attendee
38 pts
@smiller7502

A null variable doesn’t contain the string “null”; in Lectora, a null variable is empty. Set your condition to

Set variable value empty IF variable Is Empty

or

Change contents IF variable Is Not Empty

(In most programming languages, a null variable is not empty either; it’s nothing, and must be tested for with “Is Null” or “Is Not Null”. However, in Lectora, null variables are treated as empty.)