Jump to content
You must now use your email address to sign in [click for more info] ×

Logic in equations would be Rather Nice


Recommended Posts

It would be good if you could use logical operations in equations. Yes, there's the bitwise 'and', 'or', etc. But I was thinking rather of an 'if..then' structure. Either do it with if..then, or with true/false (1/0).

eg. (1=1)*5 = 5, but (1=2)*5 = 0.

Many thanks for your kind considerations,

Damian R Blenkinsop, OAF

Dave Straker

Cameras: Sony A7R2, RX100V

Computers: Win10: Chillblast i9 Custom + Philips 40in 4K & Benq 23in; Surface Pro 4 i5; iPad Pro 11"

Favourite word: Aha. For me and for others.

Link to comment
Share on other sites

Well I would rather like to see a general scripting support (which would offer all that and also give much more possibilities then), than crippling such things into equations.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

I would support simple logical expressions. You can emulate them with the current set. For example, to test for equality:

EQ(A,B) = floor((min(A,B)/max(A,B))

This gives 0 if A<>B and 1 if A=B, but only if both are positive or both negative.

It works, but is hardly elegant!

John

Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.