Skip to main content

All Questions

Tagged with
1 vote
1 answer
87 views

Text display based on condition in React.js

im a new to React Im trying to display a basic text after i make login based on condition in component of react redux but no matter what, the text shows every time The login function works fine and i ...
Michael Schetzer's user avatar
0 votes
1 answer
324 views

Call to a member function extension() on null when using the or operator

so, I have two conditions which I wrap using if with "or" operator. previously it worked fine using the "and" operator, but when I only update one file upload it doesn't run, but ...
Irfan Chaniago's user avatar
0 votes
1 answer
62 views

Java program using remainder operators

I'm trying to create a java program in netbeans that will accept two integers and return a message is the first integer is a multiple of the second. So "integer1 is a multiple of integer2" ...
HHH's user avatar
  • 1
0 votes
1 answer
182 views

Bash - complex if condition statement, combining && and || to test arithmetic and string together

I am trying to test few things together. but my if statement is throwing an error saying: ./script1.sh: line 30: expected `)' ./script1.sh: line 30: syntax error near `0)' ./script1.sh: line 30: ` if ...
J Patel's user avatar
  • 41
0 votes
2 answers
194 views

operator '&&'cannot be applied to 'int', 'int' [closed]

@Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode = 1 && ...
n00b's user avatar
  • 3
0 votes
2 answers
42 views

Operator with 3 variables highest variable show name with pandas and python

I'm trying to obtain the variable with the highest number so basically this are the variables: number_no = 17 number_yes = 2 number_dontknow = 10 I would like to know with one is the highest I was ...
user avatar
0 votes
1 answer
86 views

What does "!" operator denotes if it's used before an array index?

I'm a beginner on competetive programming. I was stuck in a problem so I viewed a persons code I follow. I didn't understand this following part particularly: int i,n,a[1005]={},b; vector&...
Nuzhat Afrin's user avatar
0 votes
2 answers
821 views

Get the season when entering a month and day (python)

I am writing a code that allows the user to enter a month and date and the program will tell them what season it will be given the information that the user entered. What I currently have working is ...
iconstar's user avatar
0 votes
1 answer
895 views

Why is it that I "cannot use assignment expressions with comparison" in Python?

In the examples below x is assigned using the walrus operator and is then printed. mystring = "hello, world" #if 1 if x := mystring == "hello, world": print(x) #if 2 if x := (...
GazYah's user avatar
  • 28
0 votes
1 answer
186 views

How to convert a ternary operator into a conditional operator?

Basically I need to transform a ternary operator into a conditional operator using "if...else" cycle. function getBestStudent (students) { const bestAverageMark = students.reduce((a, b) =&...
leopolis's user avatar
1 vote
2 answers
629 views

Powershell - if statement operator through paramenter

Hello Powershell expert, i have a short question regarding a powershell issue of mine. I try to pass parameter variables to process these variables in an if statement.My Goal is to have a fully ...
LKo.exp's user avatar
  • 198
-2 votes
1 answer
69 views

Please explain if Condition in this program

Please Explain how if statement is working here I am new in c++. #include <iostream> using namespace std; int main (){ int b=6,c=5; if (b++==7 && ++c==5) { b*=c; ...
kashif javed's user avatar
-2 votes
1 answer
77 views

if statement not being implemented in c++ [closed]

It seems, the if statement is not being called in the given program. The output says it's a consonant even if the input is a vowel. #include <iostream> using namespace std; int main() { char ...
Nadiyah Ahmed's user avatar
-1 votes
1 answer
53 views

Why use !== when you can use ===?

I could simply vice versa the code to be executed by the if and else. And === is more easier to use compared to !== so why is the not equal operator used? function equality( number ){ if ( number =...
user avatar
0 votes
1 answer
35 views

Condition being ignored?

So, I'm relatively new to Python and I apologise in advance if this question seems dumb. In the practice game I am attempting to make to understand how to make my own text-based adventure, the player ...
NessFlow's user avatar

15 30 50 per page
1
2 3 4 5
17