Hi.
How to perform a bitwise operation in tansform() function?
For example, this one doesn't work:
Best regards.
How to perform a bitwise operation in tansform() function?
For example, this one doesn't work:
function transform() {
if(($0.col1 & 0x0001) or ($0.col1 & 0x0001)) {
$0.col2 := $0.col2;
}
...
Best regards.
-
Hi,
CTL does not have bitwise operators, you will have to handle it in Java.
Set up the direct mappings in CTL editor and have a Java code generated from the editor afterwards. Then implement the rest in Java. That will save you some work coding. -
There is also an option to create custom CTL functions for handling bit operations. That way, you can continue using CTL and get your functionality.
Please sign in to leave a comment.
Comments 2