php if-else statement question?

J'sylve

New member
I can't figure this out from my hw here's the requirements:

* Write a complete if-else statement
* When the variable $a_value is less than or equal to 182, set the variable $diff_value to 28, if not set $diff_value to 104


This is what I'm placing and its says it's wrong:

if ( $a_value=<182 ) {

}
else {$diff_value=28}

}


What am I doing wrong here?
Thank you :) I'm really new to php and I'm sure this is easy to most of you but it's still a little strange for me to understand. I appreciate the help
 
Back
Top