請有誰能幫助這個腳本,我是凡人而不是程序員!只有第一個字符串表達式工作查詢中有多個表達式/字符串
目的是爲了獲得訂單以下郵政編碼範圍將自己分配到文件夾 7000-8999 3000-3999 5000-5900
String AusPostcodeExp = @"^[78][0-9][0-9][0-9]$";
String AusPostcodeExp2 = @"^3[0-9][0-9][0-9]$";
String AusPostcodeExp3 = @"^5[0-8][0-9][0-9]$";
String AusPostcodeExp4 = @"^5[0-9][0][0]$";
String postcode = order.PostCode.ToString();
if (order.Country.ToUpper() == "AUSTRALIA" && IsValid(postcode, AusPostcodeExp))
if (order.Country.ToUpper() == "AUSTRALIA" && IsValid(postcode, AusPostcodeExp2))
if (order.Country.ToUpper() == "AUSTRALIA" && IsValid(postcode, AusPostcodeExp3))
if (order.Country.ToUpper() == "AUSTRALIA" && IsValid(postcode, AusPostcodeExp4))
{
order.SetAssignToAFolder("MELBOURNE");
這是什麼語言?此外,你的代碼似乎缺少它的一部分。 –
我很確定這是C#,但@Kendall是對的。如果這是C#,請使用包含'[C#]'標籤。 –
就像我說的,我只是凡人,不知道你的意思是[c#]標籤! – jacquisu