boolean-logic
Prolog Beginner - Is This a Bad Idea?
The application I\'m working on is a \"configurator\" of sorts. It\'s written in C# and I even wrote a rules engine to go with it. The idea is that there are a bunch of propositional logic statements,[详细]
2023-03-21 19:32 分类:问答Boolean algebra in javascript
Is there any way to use boolean algebra in JS? Eg I would like to loop through an array containing true & false, and simplify it down to either only true, or false.[详细]
2023-03-20 04:36 分类:问答Boolean Logic: How can I simplify this IF statement?
I inherited some code that contains an IF statement I\'d like to reduce if possible. It is, in essence, a simple IF (A or B) THEN.But it gets tricky because A and B are generalizations of other expre[详细]
2023-03-18 19:04 分类:问答How to negate a disjunction
I am a little confused with Enumerator#reject in ruby. Consider the following code: (1..10).select {|i| i % 3 == 0 || i % 5 == 0 } => [3, 5, 6, 9, 10][详细]
2023-03-18 09:28 分类:问答Makefile ifeq logical AND
I would like to check multiple conditions in an if loop of GNU make file. Here\'s an example: ifeq ($(TEST_FLAG),TRUE && ($(DEBUG_FLAG),FALSE))[详细]
2023-03-15 07:45 分类:问答And and Or logic reversed in basic while loop
I\'ve just started use rails but this logic seems reversed to me. weight = 70 num_pallets = 25 while weight < 100 and num_pallets <=30[详细]
2023-03-14 17:02 分类:问答php: $a=$b OR $a=$c vs. ternary
I need to assign one of two variables to a third variable, using the value of the second variable if the first is (bool)false or undefined.[详细]
2023-03-13 08:02 分类:问答How to understand De Morgan Laws Boolean Expression
I got screwed when trying to understand this expression. I\'ve thought several times but I cant get the meaning.[详细]
2023-03-08 03:54 分类:问答Not able to figure out the logical error in C program
A program that prints its input one word per line. int main() { int c; while ((c=getchar()) != EOF) { if (c== \' \' || c== \'\\n\' ||c == \'\\t\')[详细]
2023-03-06 13:38 分类:问答Assign result of Boolean Logic statements to bit field in T-sql
according to this question, I can\'t assign the result of a boolean log开发者_运维知识库ic statement into a bit field.My problem is that I am working on a creation script and I have a few dependent fl[详细]
2023-03-02 23:47 分类:问答