I'm trying to make a simple string comparison like this:
But when I try to compile I get two errors both saying "Illegal parameter assignment". It seems like the problem is in the IF statement but I can't figure out way. Does anyone else know what's wrong?
Code:
FUNCTION Ok_Att_Aktivera : VOID
VAR_INPUT
editable_article_nr : STRING[15];
active_article_nr : STRING[15];
END_VAR
VAR_OUTPUT
okAttAktivera : BOOL;
END_VAR
IF editable_article_nr = active_article_nr THEN
okAttAktivera := TRUE;
END_IF;
END_FUNCTION
But when I try to compile I get two errors both saying "Illegal parameter assignment". It seems like the problem is in the IF statement but I can't figure out way. Does anyone else know what's wrong?