如果使用 if elseif 语句,则无法让我的代码读取多个条件。不知道为什么它从不读取第二个条件。我已经尝试了大约十几种不同的方法。任何帮助,将不胜感激。这是我上次尝试的代码。我已经尝试了多个字符串!在前面等等。仍然不会阅读第二个声明。
if (($attachscreenshot = $false) -and ([bool]$textbox2))
{
newmail0
}
elseif (($attachscreenshot = $true) -and ([bool]$textbox2))
{
newmail3
}
elseif ($attachscreenshot = $false)
{
newmail1
}
else
{
newmail
}