{note}{formtext: name=BCBS prefix; default=}{digit=upper(split({=`BCBS prefix`}, ""))}
{hmo=["ZGN","ZGI","ZGZ","T2G","VEX","VEU","VEN"]}
{if:`bcbs prefix`=""}
Please enter the BCBS prefix you would like to test for HMO. Just enter the first three letters and type in uppercase <3
{repeat: for item in hmo}
{if: `bcbs prefix`=item}
This plan is an HMO plan. Please add this patient onto the auth list now. Call for the referral ASAP. Thank you!
{endif}
{endrepeat}
{else: trim=yes}
This plan is not an HMO.
{endif}
{endnote: trim=yes}
I'm trying to figure out why the repeat function is not working here. Can TextBlaze iterate in a list like this? Thank you!
EDIT: for some reason when I copied this over, all these red errors appeared. In my textblaze, I have no errors, but the output is "This plan is not an HMO." no matter what the user inputs. I posted the snippet here, where the error does not exist: Copy of Snippet "Hmo checker" Thanks again.