Initialize your variables!basically ...
the first one := acts like a LATCH instruction ... specifically, it is a RETENTIVE instruction - so it is able to retain an ON status after a processor's power up condition ...
the second one [:=] acts like an OTE instruction ... specifically, it is a NON-retentive instruction - so the processor will automatically "reset it" to an OFF status - during PRE-SCAN on a power up condition ...
sometimes a programmer will try to build a "structured text" construction intending for it to act like a ladder-logic "seal-in" rung - but they mistakenly use the := instruction ... this can have SEVERE consequences if the rung's output unexpectedly powers-up in an ON condition ... ("severe" as in "lawyer level" consequences) ...