error in if elase

hello
what is the error
?

[admin@TIPLINKMICO] > :global c 1;
[admin@TIPLINKMICO] > 
[admin@TIPLINKMICO] > if ($c = 1) do={:global c 2;}else={ :global c 4;}
expected end of command (line 1 column 30)
[admin@TIPLINKMICO] >

i test but error

: if ($c = 1) do={:global c 2;}else={ :global c 4;}

i test remove else and work fine :frowning:
please help me

Insert a space before else.

if ($c = 1) do={:global c 2} else={ :global c 4}

thank you
:smiley:
its work

No problem, have fun!