Bug Fix: Added missing equal to condition for the parameter that checks for a triangle.