Preparing return values for lgical operators