I need syntax help please

It has been a long time since I was forced to do a rule on v 4.X but I need help passing syntax. I keep getting syntax errors. Please help me. Here is my code:

if (http_host == “iSupUAT.dectest.xx.com”) {

use pool G5UAT }

else {

if (http_host == “iSupANI.dectest.xx.com”) {

use pool G5ANI }

else {

if (http_host == “iSupDev.dectest.xx.com”) {

use pool g5dev }

else {

redirect to “https://anotherwebpage/perf/errorpage.html”

}

I figured it out. Sorry for the post.