In an expression transformation, a port can be an output as well as variable port.
variable port
Output port
Both a & b
Only a