Forum OpenACS Q&A: New proc: exists_and_equal

Collapse
Posted by Peter Marklund on
I noticed that we were doing a lot of if { [info exists var_name] && [string equal $var_name "some_value"] } { ...

so I added the proc [exists_and_equal varname value] that works similar to the current exists_and_not_null proc. This should save us some typing and make the code a little easier to read.