Creating a nested rule that triggers a message and a cc email

  • 1
  • Question
  • Updated 1 month ago
  • Answered
  • (Edited)

I'm trying to edit a rule that was only checking a selection  (veterans services) within needs and services.  What I want to know is if I can create a nested rule that will check military status also and create a cc to a person in the Veterans Resource Center.  Here's what I was trying to do, but it didn't seem to recognize the nested if statement.  I was getting an error.  Is this possible?

if (veterans_services == true)



{

mail("Veterans", "from_someone@mccd.edu", "Veterans Services")

}

 elseif (veterans_services == false)

{

        if (military_status == “2”, “3”, “4”, “7”, “8”, “9”, “A”, “B”)

        {

           mail("Veterans", "from_someone@mccd.edu", "Veterans Services")

       }

}






Photo of JRM

JRM

  • 1 Post
  • 0 Reply Likes

Posted 1 month ago

  • 1
Photo of Merrie Wales

Merrie Wales, Official Rep

  • 869 Posts
  • 47 Reply Likes
Good Morning Jeanette,
Thank you for your question.  There is currently no ability for a Rule to be "nested", so no "elseif" statements are available. You may create two rules, that accomplish what your "nested" rule does, and have one trigger after the other one.   I have replied in your helpdesk ticket, as well.  You may see all of the possible methods to create rules in the reference tab in the rules window:

(Edited)