Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a calculation the result of which is a container. The calculation checks for the system platform.

Case ( Get ( SystemPlatform ) = -1;

"imagemac:/Images/FolderBW/ & ImageName ".jpg";

"imagewin:/F:/FolderBW/ & ImageName ".jpg";)

I now need to test for another condition: if the image is Black and White or Colour.

Case ( ColourSign ≠ "Colour";

"imagemac:/Images/FolderBW/ & ImageName ".jpg";

"imagemac:/Images/FolderColour/ & ImageName ".jpg";)

How would I combine these calculations so that I check for the system platform and the ColourSign field.

Posted

Case(

Get ( SystemPlatform ) = -1 ; "imagemac:/Images/" & If ( ColourSign ≠ "Colour"; "FolderBW/" ; "FolderColour/" ) & ImageName & ".jpg";

"imagewin:/F:/" & If ( ColourSign ≠ "Colour"; "FolderBW/" ; "FolderColour/" ) & ImageName & ".jpg"

)

or simpler:

Let(

cond = If ( ColourSign ≠ "Colour"; "FolderBW/" ; "FolderColour/" ) & ImageName & ".jpg" ;

Case( Get ( SystemPlatform ) = -1 ; "imagemac:/Images/" ; "imagewin:/F:/" ) & cond

)

Posted

BEWARE: you are only checking for PowerPC based Macs with -1 result. The function also returns +1 for Intel Macs - use:

Abs (Get (SystemPlatform)) = 1

This topic is 5557 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.