Jump to content
Server Maintenance This Week. ×

FMP-If - Confused and bewildered (again)


This topic is 8606 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Here I am again, getting closer to finishing this project, but again stuck on if statements.

I'm confused about FMP-If statements. What are the required tags needed and where does the If and else statement go? (I'm using Homepage and the filemaker_forml.hlb).

I want to compare a number that has been entered into a global field with a indexed field from another database.

I'm hoping something like this will work

[FMP-IF: streg: tongue.gifassword .cn. gPassword] Show this link [/FMP-If]

I've searched the web and found lots of info about FMP-If, but very few examples of the actual code and where it needs to be placed.

If anyone can help, I would be most appreciatative.

T. Miller

Link to comment
Share on other sites

This example colors the table data cell (<TD>) red if the contents of the "Wire6" field is "No 5MD1 !":

[FMP-IF: field: Wire6 .eq. No 5MD1 !]

<TD ALIGN=CENTER BGCOLOR="RED">

[FMP-Else]

<TD ALIGN=CENTER BGCOLOR="#AFEEEE">

[/FMP-IF]

The following allows you to use one CDML page as a detail record page for edit, duplicate, and delete.

Simply put the code for each section withing the tags...

[FMP-If:currentaction.eq.edit] <!-- Edit -->

[/FMP-If] <!-- Edit -->

[FMP-If:currentaction.eq.find] <!-- find -->

[/FMP-If] <!-- find -->

[FMP-If:currentaction.eq.delete] <!-- delete -->

[/FMP-If] <!-- delete -->

[FMP-If:currentaction.eq.new] <!-- New -->

[/FMP-If] <!-- New -->

[FMP-If:currentaction.eq.dup] <!-- Duplicate -->

[/FMP-If] <!-- Duplicate -->

Link to comment
Share on other sites

This topic is 8606 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.