所以我一直试图找到一个答案,但在互联网上找不到答案.我需要检查环境变量是否存在.我以为我有正确的代码,但它一直返回错误.
if { [info exists ::env(USER)] } { RAT::LogMsg INFO "Found USER" } else { RAT::LogMsg INFO "Nope!" }
有任何想法吗?
tcl environment-variables renderman
environment-variables ×1
renderman ×1
tcl ×1