iPXE Template Variable for Loader

Hi, is there a method of returning the selected PXE loader (e.g. ‘iPXE Chain UEFI’) or hardware firmware (e.g. efi) in an iPXE template? I can’t seem to find a variable for it. I’m trying to use a single iPXE template for both BIOS and UEFI to avoid multiple operating systems. Thanks in advance!

Found answer here: BIOS/UEFI Partition Tables Template