See: uae_floppy0type Code: if c.uae_floppy3type.explicit: value = c.uae_floppy3type.explicit elif int(c.floppy_drive_count) > 3: value = c.int_default_floppy_type else: value = "-1"