In ExST, as an extension to the IEC 61131-3 standard, CODESYS permits the use of assignments as expressions.
Examples
| 
                                     
  | 
                                 
                                     (*   | 
                              
| 
                                     
  | 
                                 
                                     (*   | 
                              
| 
                                     
  | 
                                 
                                     (* incorrect assignment, the data types do not correspond! *)  | 
                              
| 
                                     
 
 
  | 
                                 
See also