How To Parse Dynamic And Nested If Statements