I moved my app (that used Sharepoint lists) to a new environment where the data is stored in Dataverse tables. But now my 'Update' property of the card with a toggle field keeps giving an error: 'Expected OptionSetValue value'. I tried statements like: 'If(Reistijd_Terug_log.Value,true,false)', 'If(Reistijd_Terug_log.Value = true,true,false)' and 'If(Reistijd_Terug_log.Value,Yes,No), but nothing works.

Does someone have an idea of how to solve this problem?