I am receiving an error on the script below, it works up until the 5th else statement and then I receive an error that simply says: "Expected EOF, found else"
When I remove the { from directly above and add it to the very bottom I no longer receive the error but the script doesn't work either.
if ((valuePlatformType.toString() == "[ai]"))
if ((valueProductType.toString() == "Sult") || (valueProductType.toString() == "Standard") || (valueProductType.toString() == "Cx"))
if (valueClientType.toString() == "Per") {
allowedOptions = fieldIntegration.setFieldOptions(options.findAll {
it.value in ["PrI", "ne", "One", "Dit", "Other"]})
} else {
if ((valuePlatformType.toString() == "[Bai]"))
if ((valueProductType.toString() == "Ct") || (valueProductType.toString() == "Complex"))
if (valueClientType.toString() == "yer") {
allowedOptions = fieldIntegration.setFieldOptions(options.findAll {
it.value in ["Jn", "ST", "BPI", "Otr"]})}
} else {
if ((valuePlatformType.toString() == "[Bi]"))
if ((valueProductType.toString() == "Ner"))
if ((valueClientType.toString() == "Pro")) {
allowedOptions = fieldIntegration.setFieldOptions(options.findAll {
it.value in ["Off", "Dest"]})}
} else {
if ((valuePlatformType.toString() == "[D]") || (valuePlatformType.toString() == "Cise"))
if (valueProductType.toString() == "ard")
if ((valueClientType.toString() == "ider") || (valueClientType.toString() == "Buyer")) {
allowedOptions = fieldIntegration.setFieldOptions(options.findAll {
it.value in ["Regiatch", "Actch"]})}
} else {
if ((valuePlatformType.toString() == "[Ads]"))
if (valueProductType.toString() == "Stan")
if ((valueClientType.toString() == "vider") || (valueClientType.toString() == "yer")) {
allowedOptions = fieldIntegration.setFieldOptions(options.findAll {
it.value in ["User Sync", "Fire", "tta"]})}
} else {
if ((valuePlatformType.toString() == "[Eloa]") || (valuePlatformType.toString() == "Resp"))
if (valueProductType.toString() == "Standard")
if ((valueClientType.toString() == "Ber") || (valueClientType.toString() == "Prov")) {
allowedOptions = fieldIntegration.setFieldOptions(options.findAll {
it.value in ["Pool", "Private"]})}
} else {
return
}
Aucun commentaire:
Enregistrer un commentaire