CalcBuilder Forum

Results with images

User alexanderich 2015-01-23 17:01:33

hi,

can i show two different images for 2 different results?
how can i do?


thanks

Moonsoft support 2015-01-23 19:00:21

Hi,
yes, there are several ways to achieve this. You can set at your code the image name depending on your results, for example:

if($result>50){

$imagename="image1.png";
}
else{
$imagename="image2.png";

}

so you will have available ##imagename## to print at your html output:


...img src="/imagesfolder/##imagename##"....


If you need more help with this, please open a ticket at helpdesk so we can share code.

Thanks, regards

...
CalcBuilder

Create dynamic calculators

Buy now!
...
List Manager

Build different lists for your site

Buy now!