If statement Tcl IF语句中的多个THEN语句

If statement Tcl IF语句中的多个THEN语句,if-statement,tcl,If Statement,Tcl,我正在使用Tcl脚本,如果if语句为true,我想做两件不同的事情。代码如下: if { $Start_day >= 1 && $Start_day <= 15} {set Meteo_file "edas.$Start_month2$Start_year.001"

我正在使用Tcl脚本,如果if语句为true,我想做两件不同的事情。代码如下:

if { $Start_day >= 1 && $Start_day <= 15} {set Meteo_file "edas.$Start_month2$Start_year.001"                                                                                                                                            
                                           set Meteo_file_back "edas.$Start_month2_back$Start_year_back.002"}

有没有办法(语法)让if语句在实现时做两件独立的事情?

在我看来,把它们放在单独的行上更容易阅读:

if {$Start_day >= 1 && $Start_day <= 15} {
    set Meteo_file "edas.$Start_month2$Start_year.001"
    set Meteo_file_back "edas.$Start_month2_back$Start_year_back.002"
}

如果{$Start\u day>=1&&$Start\u day可能只是我的一个间隔问题,因为这很有效。谢谢你!@DJV太棒了!很高兴能帮上忙:)
if {$Start_day >= 1 && $Start_day <= 15} {
    set Meteo_file "edas.$Start_month2$Start_year.001"
    set Meteo_file_back "edas.$Start_month2_back$Start_year_back.002"
}