im new to c but not to seimens step 5.7 so i think im stuck in the rut of that witch is of course plc,s and not computer
i caint seem to get a if then peice of code to work
i write it
if (varx=1)
{
play sound
}
but the sound just plays no matter what varx is
ive set var1 a int
and i change its state with key down varx=1;
key up varx=0;
what am i doing wrong please anyone