Questions tagged as 'if'

1
answer

How to identify the values that Log.e brings on Android with Firebase

I have this structure in Firebase And I'm calling the last three data with the name "dose" with this structure my.child("usuario").orderByKey().limitToLast(3).addValueEventListener(new ValueEventListener() { @Override...
asked by 05.10.2018 / 02:29
2
answers

Questions about!, Number and a little bit of logic

Good I am new in JS, some questions of logic = > Can someone explain to me why these 3 options I have discussed above go into the first section of the else if: 'Please enter a valid numeric value.' Can someone tell me if I'm right in the fi...
asked by 14.12.2017 / 17:46
2
answers

Problem with the IF in java

classmates I was starting with a new class and I was surprised how the if it does not work with whole numbers that is to say it does not compare correctly the greater than and the smaller that The code is as follows import java.util.Scanner;...
asked by 02.09.2018 / 02:41
2
answers

How can I create an if you can change the value of a select by pressing a button?

How can I create an if you can change the value of a select when you press a button? Example: SELECT * FROM pais WHERE ciudad ='$valor-a-camiar-con-if'"; I need it to be with an if. Is it possible? This would be for a project with ph...
asked by 17.05.2018 / 20:54
1
answer

Condition between weekdays

Friends, I'm doing a little program that reads from a database between which days of the week a certain process must be executed. I'm getting the day of the week based on date("N") and it gives me a number from 1-7, which would be, Mon...
asked by 25.05.2018 / 01:19
2
answers

How can I define a variable in Python using if?

What I basically want to do would be: Set from the inputs a max value and a minimum value but I do not know how to do it. if lado1>lado2 and lado3: ... print("A=lado1") ... if lado2>lado1 and lado3: ... print("A=lado2") ... if...
asked by 04.04.2018 / 23:30
1
answer

How to perform if statement with JSTL Java? [Java EE]

I'm trying to list operators whose level or type of user equals 3. Clearly I have an error in the syntax or in the comparison that I make. I hope you can help. <tbody> <c:forEach items="${listPostulant}" var="postulant">...
asked by 06.07.2018 / 19:48
1
answer

difference in "IF" of pdf, DOC, PPTX files [closed]

I need to create an "if" to differentiate pdf files from doc and pptx in php. Thanks     
asked by 10.10.2017 / 21:03