For my transition, I have the following:
{y1 = boolean(x1); y2 = boolean(x2); y3 = (y1 == y2);}
If x1 = 2 and x2 = 3, Stateflow outputs y1 = 2 and y2 = 3. I expect y1 = 1 and y2 = 1.
booleancastingdatatypestateflowtype
{y1 = boolean(x1); y2 = boolean(x2); y3 = (y1 == y2);}
Best Answer