I've uploaded the mission folder for you to try. The map contains three units, a bluefor unit (named BlueUnit), opfor unit (named RedUnit), greenfor unit (named GreenUnit). The comparison script is executed via Radio Alpha command.
The script gets the side value from each of those units and does comparisons on the returned side value:
_sideBlue = side BlueUnit;
_sideRed = side RedUnit;
_sideGreen = side GreenUnit;
diag_log format ["_sideBlue (%1) == west (%2)",_sideBlue,_sideBlue == west];
diag_log format ["_sideBlue (%1) == blufor (%2)",_sideBlue,_sideBlue == blufor];
diag_log format ["_sideRed (%1) == east (%2)",_sideRed,_sideRed == east];
diag_log format ["_sideRed (%1) == opfor (%2)",_sideRed,_sideRed == opfor];
diag_log format ["_sideGreen (%1) == resistance (%2)",_sideGreen,_sideGreen == resistance];
diag_log format ["_sideGreen (%1) == guer (%2)",_sideGreen,_sideGreen == guer];
diag_log format ["_sideGreen (%1) == independent (%2)",_sideGreen,_sideGreen == independent];
The result from my test run is as follows:
"_sideBlue (WEST) == west (true)"
"_sideBlue (WEST) == blufor (true)"
"_sideRed (EAST) == east (true)"
"_sideRed (EAST) == opfor (true)"
"_sideGreen (GUER) == resistance (true)"
"_sideGreen (GUER) == guer (bool)"
"_sideGreen (GUER) == independent (true)"
As you can see, guer cannot compare to itself...