# Проходим по всем биндам foreach bind [split $testscript(downfcmd) " "] { # Биндим паблик команды: bind pub -|- "$testscript(pref)$bind" ::testscript::down_pub # Проверка на возможность работы в привате и бинд приватных команд: if {$testscript(msg) >= 1} { bind msg -|- "$testscript(pref)$bind" ::testscript::down_msg } }