Skip to content

Instantly share code, notes, and snippets.

@sletix
Created September 15, 2009 06:13
Show Gist options
  • Save sletix/187150 to your computer and use it in GitHub Desktop.
Save sletix/187150 to your computer and use it in GitHub Desktop.
if (hot == true)
{
hottubs = "1";
}
else
{
hottubs = "";
}
if (pool == true)
{
pool_db = "1";
}
else
{
pool_db = "";
}
if (pet == true)
{
pet_db = "1";
} else
{
pet_db = "";
}
if (internetaccess == true)
{
internet = "1";
} else
{
internet = "";
}
if (freeparking == true)
{
freeparking_db = "1";
} else
{
freeparking_db = "";
}
if (freeshuttle == true)
{
freeshuttle_db = "1";
} else
{
freeshuttle_db = "";
}
if (waterfront == true)
{
water_db = "1";
}
else
{
water_db = "";
}
if (nonsmoking == true)
{
nonsmoking_db = "1";
}
else
{
nonsmoking_db = "";
}
if (fitnesscenter == true)
{
fitnesscenter_db = "1";
}
else
{
fitnesscenter_db = "";
}
if (businesscenter == true)
{
businesscenter_db = "1";
}
else
{
businesscenter_db = "";
}
if (resturant == true)
{
resturant_db = "1";
}
else
{
resturant_db = "";
}
if (breakfast == true)
{
breakfast_db = "1";
}
else
{
breakfast_db = "";
}
if (cable_satelite == true)
{
cable_satelite_db = "1";
}
else
{
cable_satelite_db = "";
}
if (hbopremium == true)
{
hbopremium_db = "1";
}
else
{
hbopremium_db = "";
}
if (dvdplayer == true)
{
dvdplayer_db = "1";
}
else
{
dvdplayer_db = "";
}
if (landury == true)
{
landury_db = "1";
}
else
{
landury_db = "";
}
if (roomservice == true)
{
roomservice_db = "1";
}
else
{
roomservice_db = "";
}
if (wheelchair == true)
{
wheelchair_db = "1";
}
else
{
wheelchair_db = "";
}
//second coloum
if (house == true)
{
house_db = "1";
}
else
{
house_db = "";
}
if (condo == true)
{
condo_db = "1";
}
else
{
condo_db = "";
}
if (town_house == true)
{
town_house_db = "1";
}
else
{
town_house_db = "";
}
if (apartment == true)
{
apartment_db = "1";
}
else
{
apartment_db = "";
}
if (duplex == true)
{
duplex_db = "1";
}
else
{
duplex_db = "";
}
if (studio == true)
{
studio_db = "1";
}
else
{
studio_db = "";
}
if (B_B == true)
{
B_B_db = "1";
}
else
{
B_B_db = "";
}
if (resort == true)
{
resort_db = "1";
}
else
{
resort_db = "";
}
if (hotel == true)
{
hotel_db = "1";
}
else
{
hotel_db = "";
}
if (motel == true)
{
motel_db = "1";
}
else
{
motel_db = "";
}
if (houseboat == true)
{
houseboat_db = "1";
}
else
{
houseboat_db = "";
}
if (rv_park == true)
{
rv_park_db = "1";
}
else
{
rv_park_db = "";
}
if (camp_ground == true)
{
camp_ground_db = "1";
}
else
{
camp_ground_db = "";
}
// third coloum
if (north_tahoe == true)
{
north_tahoe_db = "1";
}
else
{
north_tahoe_db = "";
}
if (agate_bay == true)
{
agate_bay_db = "1";
}
else
{
agate_bay_db = "";
}
if (alpine_meadows == true)
{
alpine_meadows_db = "1";
}
else
{
alpine_meadows_db = "";
}
if (grockway == true)
{
grockway_db = "1";
}
else
{
grockway_db = "";
}
if (carnelian_bay == true)
{
carnelian_bay_db = "1";
}
else
{
carnelian_bay_db = "";
}
if (dollar_point == true)
{
dollar_point_db = "1";
}
else
{
dollar_point_db = "";
}
if (donnar_lake == true)
{
donnar_lake_db = "1";
}
else
{
donnar_lake_db = "";
}
if (homw_wood == true)
{
homw_wood_db = "1";
}
else
{
homw_wood_db = "";
}
if (incline_village == true)
{
incline_village_db = "1";
}
else
{
incline_village_db = "";
}
if (kings_beach == true)
{
kings_beach_db = "1";
}
else
{
kings_beach_db = "";
}
if (north_star == true)
{
north_star_db = "1";
}
else
{
north_star_db = "";
}
if (rubican == true)
{
rubican_db = "1";
}
else
{
rubican_db = "";
}
if (soda_springs == true)
{
soda_springs_db = "1";
}
else
{
soda_springs_db = "";
}
if (squaw_valley == true)
{
squaw_valley_db = "1";
}
else
{
squaw_valley_db = "";
}
if (sunny_side == true)
{
sunny_side_db = "1";
}
else
{
sunny_side_db = "";
}
if (tahoe_city == true)
{
tahoe_city_db = "1";
}
else
{
tahoe_city_db = "";
}
if (tahoe_donnar == true)
{
tahoe_donnar_db = "1";
}
else
{
tahoe_donnar_db = "";
}
if (tahoe_vista == true)
{
tahoe_vista_db = "1";
}
else
{
tahoe_vista_db = "";
}
if (tahoma == true)
{
tahoma_db = "1";
}
else
{
tahoma_db = "";
}
if (truckeea == true)
{
truckeea_db = "1";
}
else
{
truckeea_db = "";
}
if (south_tahoe == true)
{
south_tahoe_db = "1";
}
else
{
south_tahoe_db = "";
}
if (heavenly_valley == true)
{
heavenly_valley_db = "1";
}
else
{
heavenly_valley_db = "";
}
if (south_lake == true)
{
south_lake_db = "1";
}
else
{
south_lake_db = "";
}
if (tahoe_key == true)
{
tahoe_key_db = "1";
}
else
{
tahoe_key_db = "";
}
if (twin_bridges == true)
{
twin_bridges_db = "1";
}
else
{
twin_bridges_db = "";
}
if (stateline == true)
{
stateline_db = "1";
}
else
{
stateline_db = "";
}
if (zephyrcove == true)
{
zephyrcove_db = "1";
}
else
{
zephyrcove_db = "";
}
VS
['name_1','name_2'...'name_n'].each(function(name){
eval(name+'_db') = eval(name) ? "1" : "";
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment