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