python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Php Or operator doesn´works propertly
I´m trying to use or operator in a php sentence but only validate the first condition, what´s wrong?
if ($_SESSION['user_id'] != 4 || $_SESSION['rol'] != 1)
{
//exit
}else{
//do something
}```

porfinfunciona
Votes: 0
Answers: 1
To compare two programs with each other
Help me understand how the program works.
I take it from the book of Steven Pratt “Program language C”
I find on page № 289 exercise №6.
It's a program, her code here:
#include <stdio.h>
#includ...

Mikhail
Votes: 0
Answers: 2
The exponential operator in Matlab grammar using ANTLR4 does not work correctly
I have been using matlab grammar from this source. I came across an error to the following input
a = 2^2*3
b = 3*2^2
Result in both cases should be 12, but it is not, because the exponential operator...
modryslon
Votes: 0
Answers: 1
How to substitute $ for a parameter in Array Update Operators [Mongoose]
I have an apparently simple question, is it possible for me to replace the $ operator used to identify the index of an attribute array inside the mongoose for a variable that I have already passed as ...

Gabriel Faria
Votes: 0
Answers: 0