CmdHandler: Fix variable check in update_param (change and to or). Format code.