The ports of two blocks are compatible if the ports have the same data type. If the ports are compatible they can be connected.
The following example shows two math tasks that are connected. The connection is valid because the ports are compatible.