Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Mod issue: condition stack


Matthiaswagg
 Share

Recommended Posts

Alright. So I have a condition stack and I want it to be like this:

 

If (A & B) OR (C & D) OR (A & B & C & D)

 

So I'm wondering if this condition stack would work:

 

A - OR

C - AND

B - OR

C - AND

A - OR

D - AND

B - OR

D - AND

B - OR

D - AND

C - AND

D - AND

 

I suspect this is wrong. If so, what exactly should it look like? 

 

Thanks in advance.

Link to comment
Share on other sites

Alright. So I have a condition stack and I want it to be like this:

 

If (A & B) OR (C & D) OR (A & B & C & D)

 

The last expression is redundant. "IF (A & B) OR (C & D)" will always be true when all four terms are true, so you don't need to test "(A & B & C & D)". Conversely, if either of the first two expressions is false, the third expression must also be false.

 

For a simpler example, "IF A OR B" is true if A is true, if B is true, or if both are true. It gives you exactly the same results as "IF A OR B OR (A & B)".

Link to comment
Share on other sites

The last expression is redundant. "IF (A & B) OR (C & D)" will always be true when all four terms are true, so you don't need to test "(A & B & C & D)". Conversely, if either of the first two expressions is false, the third expression must also be false.

 

For a simpler example, "IF A OR B" is true if A is true, if B is true, or if both are true. It gives you exactly the same results as "IF A OR B OR (A & B)".

Ah, thanks. Egocarib said the same thing. 

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.

 Share

×
×
  • Create New...