我有下面的代码,但它抛出了错误,说 If 语句没有用 EndIf 关闭。我尝试了一些不同使用 () 的变体,但没有运气。非常感谢您的帮助。谢谢!
%%[
SET @CurrentCourse = Item_Group__c
SET @Location = Location__c
IF IndexOf(@Location, "Melbourne") > 0 AND @CurrentCourse == "Course 1" THEN
SET @NextCourse = "Course A"
SET @CurrentPermit = "Permit 1"
ELSEIF IndexOf(@Location, "Sydney" > 0 AND @CurrentCourse == "Course 1" THEN
SET @NextCourse = "Course B"
SET @CurrentPermit = "Permit 1"
ELSEIF IndexOf(@Location, "Perth") > 0 AND @CurrentCourse == "Course 1" THEN
SET @NextCourse = "Course C"
SET @CurrentPermit = "Permit 2"
ENDIF
]%%