Jump to content

[HELP SOON please] Wierd if statement....


Dethman

Recommended Posts

<?php

$var5 = $var3*$var4;
$finalvar = $var5*1.20;

$var = $var1*$var2;

if($var == $finalvar)
{
//PHP CODE
}

 

and of course if you want 120% and greater just use > rather than ==.

 

There is probably an easier way to do it than this and I'm not entirely sure that multiplying it by the decimal will work (3:30AM now anyway, my thinking is a little off).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.