# Equality operator

**URL:** https://forum.kirupa.com/t/equality-operator/178975
**Category:** flash
**Created:** [February 15, 2006, 8:31pm UTC](https://forum.kirupa.com/t/equality-operator/178975 "2006-02-15T20:31:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rgarimella](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@rgarimella](https://forum.kirupa.com/u/rgarimella)
#### Post date: [February 15, 2006, 8:31pm UTC](https://forum.kirupa.com/t/equality-operator/178975/1 "2006-02-15T20:31:45Z")

</div>

Hi folks,

How can i check if 3 variables hold the same value in an **if** statement

var stepval1 = 20;  
var stepval2 = 20;  
var stepval3 = 20;

if (stepval1 == stepval2 == stepval3){  
trace(“inside 1 = 2 = 3”);  
}

Thanks
