mindtpi99 Posted October 9, 2003 Posted October 9, 2003 Can someone tell me how to write the following expression correctly? What I'm trying to do is check if if the text entered in a that was entered in the search page matches the found result [FMP-if: emailaddress .eq. FindValueItem]Hit[FMP-Else]Miss[/FMP-If] I'm wanting to validate a login/password with the results page - thanks!!
Garry Claridge Posted October 9, 2003 Posted October 9, 2003 Try this: [FMP-CurrentFind] [FMP-if: emailaddress .eq. {FindValueItem}]Hit[FMP-Else]Miss[/FMP-If] [/FMP-CurrentFind] Good Luck. Garry
mindtpi99 Posted October 15, 2003 Author Posted October 15, 2003 OK, that works, the problem I have now is that I want to check two fields; [FMP-CurrentFind] [FMP-if: (emailaddress .eq. {FindValueItem}).and.(password .eq. {FindValueItem})]Hit[FMP-Else]Miss[/FMP-If] [/FMP-CurrentFind] how can I get it to handle between the two FindValueItem values?
Jeff Spall Posted October 16, 2003 Posted October 16, 2003 Hi, I make calculation fields for username&" "&password and reference that instead. If you don't want to do that, you can 'nest' FMP-Ifs so that the second condition is only processed if the first is true, like this one: [FMP-IF: weeklink::daynumber_start.lte.{FMP-Field:tuesdaynumber}] [FMP-IF: weeklink::daynumber_end.gte.{FMP-Field:tuesdaynumber}] <IMG SRC="[FMP-Field:weeklink::bar]" BORDER=0 ALIGN=middle> [/FMP-IF] [/FMP-IF] regards, jeff
Recommended Posts
This topic is 7779 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now