E3121 Types Errors
Types
cannot use '%s' as a condition in a when statement; allowed types are int, uint, string, char, byte, bool, float, and enum
When this occurs
This error is triggered when: cannot use '%s' as a condition in a when statement; allowed types are int, uint, string, char, byte, bool, float, and enum
Example error message
error[E3121]:
cannot use '%s' as a condition in a when statement; allowed types are int, uint, string, char, byte, bool, float, and enum
How to fix
Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.
Related errors
No related errors.