% require("viewfunctions") local form = ... local data = form.option local service = form.service local config = form.service.config local srv1fill = "" local srv2fill = "disabled" if form.info.status.value == "Enabled" then srv1fill = "disabled" srv2fill = "" end local ifthen = function( variable, value, result ) if variable == value then io.write( result ) end end %>