If statement to show/hide one of two tables |
If statement to show/hide one of two tables |
zarcher |
Mar 27 2012, 03:10 PM
Post
#1
|
Group: Members Posts: 3 Joined: 27-March 12 Member No.: 16,802 |
This is a custom balloon for Google Maps.
Depending on the values of the cells, I want just one of these tables to appear. If there is a value for {Last Reading}, I want the first table to appear. Otherwise, the second table should appear. Please help. <div style='font-family: sans-serif'> <center> <table border="1"> <tr> <td><b>Instrument ID</b></td> <td>{Instrument ID}</td> <td><b>Last Reading</b></td> <td>{Last Reading}</td> </tr> </table> </div> </center> <b>Notes:</b> {Notes} <div style='font-family: sans-serif'> <table border="1"> <tr> <td><b>Ring #</b></td> <td>{Instrument ID}</td> <td><b>Tgt Face Pressure</b></td> <td>{Target Face Pressure}</td> </tr> </table> </div> |
Darin McGrew |
Mar 27 2012, 04:08 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
How/where are {Instrument ID} and {Last Reading} and {Target Face Pressure} defined? Is this for Tumblr?
|
Lo-Fi Version | Time is now: 29th March 2024 - 04:30 AM |