In vbscript can you use two possible conditions in an if statement? (OR)
问题 An example would be: If filter_purchase = 0 Or "" Then SetDocVar "filter_purchase", "0" Else SetDocVar "filter_purchase", CStr(filter_purchase) End If But I get a 'Type Mismatch'. Would there be an easier way than doing Else IFs? 回答1: you have to explicitly state the condition for each OR. Please see below If filter_purchase = 0 Or filter_purchase = "" Then SetDocVar "filter_purchase", "0" Else SetDocVar "filter_purchase", CStr(filter_purchase) End If 回答2: This should be the condition you