How would I better write an IF statement for this condition?
I have 4 variables to check wheather it's null or not.
$pdf_locator21e, $pdf_locator21d, $pdf_locator21c, $pdf_locator21b
IF
$pdf_locator21ehas values{ $pdf_original = "forms\pdfForms\5pg.pdf"; }IF it's NULL, then move to step 2IF
$pdf_locator21dhas values{ $pdf_original = "forms\pdfForms\4pg.pdf"; }IF it's NULL, then move to step 3IF
$pdf_locator21chas values{ $pdf_original = "forms\pdfForms\3pg.pdf"; }IF it's NULL, then move to step 4IF
$pdf_locator21bhas values{ $pdf_original = "forms\pdfForms\2pg.pdf"; }IF it's NULL
ELSE
{ $pdf_original = "forms\pdfForms\CMS-485-487-1pg.pdf"; }
I want to check is IF $pdf_locator21e has values first, then it will use 5pg.pdf and STOP checking for pdf_locator21d, pdf_locator21c, and pdf_locator21b.
IF pdf_locator21e is NULL then it will check for pdf_locator21d, and so on..