Rayed Posted October 23, 2008 Share Posted October 23, 2008 Hello, I am trying to apply a rule with a template that uses two type of background photos. One with just one photo and box with variable community names and one with two photos but when it is selected should not show any variable community names. I keep getting a syntax error "invalid assignment left-hand side" on the first line in front of the "if". Here is the rule that I have applied for just one image for now: if (Field("BlueHomeStagingFront") = "BlueStagingTwoPhotos.jpg") return "" else return "First, you'll learn how to accessorize and rearrange your home to help sell faster and for more money. Then, explore the different finance options available for purchasing your new home at" (or (Field("CommunityNY"))) I also tried returning a rule instead of a Field because that is what I need to be returned in the small box. But I get the same error. Here is that rule: if (Field("BlueHomeStagingFront") = "BlueModelTwoPhotos.jpg") return "" else return "First, you'll learn how to accessorize and rearrange your home to help sell faster and for more money. Then, explore the different finance options available for purchasing your new home at" (or (Rule("rule_communityNY_Name"))) Is there something easy I am missing, or does this need more work? Thank you, Rayed CSA Graphics Link to comment Share on other sites More sharing options...
Dan Korn Posted October 23, 2008 Share Posted October 23, 2008 if (Field("BlueHomeStagingFront") [color=red]=[/color] "BlueStagingTwoPhotos.jpg") Should be: if (Field("BlueHomeStagingFront") [color=red]==[/color] "BlueStagingTwoPhotos.jpg") The single equal sign is the assignment operator. You need to use two equal signs for a comparison operator. Link to comment Share on other sites More sharing options...
Rayed Posted October 23, 2008 Author Share Posted October 23, 2008 Thanks Dan, I got an expression ok! Now I have to figure out how it will work in the FP stage before uploading it. Thanks, Rayed Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.