Questions tagged as 'if'

1
answer

How does the "if" work?

I have that question about how if works in low level programming. If you do the check in the RAM going through all the addresses that contain it.     
asked by 02.03.2017 / 23:36
2
answers

SQL using LIKE within a variable

Good friends, I want to know how to use like inside a variable to know if there are 6,7,8 numbers. Does anyone know what would be the correct syntax for this case? @listaMenus = '4,5,6,7,8,9,10' if (@listaMenus like '%8%' or '%6%') begi...
asked by 10.09.2018 / 22:57
1
answer

ifelse with two conditions

I want to create a new variable from two dataframes, as long as two conditions are met. The df 1 and the 2 have two common variables, but only the df 1 contains a variable that I would like to join the df 2. I tried to use the vectorized functio...
asked by 30.07.2018 / 13:00
2
answers

IF conditional in SQL query

I am developing a Java web application in NETBEANS and I have a query which shows numerical values only, when I execute my query it shows them in an organized table, everything works perfectly. What I want to do are 3 conditions "IF" with the...
asked by 17.04.2017 / 18:46
2
answers

Question about if inside a class in javascript

I wanted to do that if you have a child it is true to show me something, to do it but not inside a class and if it is false tell me that you do not have children, I made this churro but it does not go, this._hijos is true you should enter the if...
asked by 14.01.2018 / 13:12
2
answers

Question about if else statements

Simple question of a newbie, I do not understand why the numerical 0 gives me a pair in this case, I want it to be 0 , '' , isNaN me% 'Por favor, introduce un valor numérico válido' : let numeroUsuario, modulo;...
asked by 13.12.2017 / 16:48
1
answer

I'm not sure why it gives this result (4320)

I do not understand why this result gives me, someone would explain to me a little the why of this result please? function a(n){ if (n === 0) { return 1; } else { return a(n - 1) * n; } } console.log(a(8)); // => 4...
asked by 09.12.2017 / 02:40
1
answer

Error when comparing if: "java: bad operand types for binary operator"

I have a small problem in which I try to compare an array with an int option in an IF entered by the user, I get an error. I do not program everything in the Main and I use several classes and I communicate with each other. I would like to ma...
asked by 29.05.2018 / 22:38
1
answer

Is there any way to optimize this if-else conditional example?

I'm looking for a conditional that looks like this or validates but without using so many lines of code if (is_file(PATH_CONTROLLERS.$controller."/".$controller."Controller.php") || is_file(PATH_CONTROLLERS.$controller."Controller.php") )...
asked by 25.06.2017 / 20:51
2
answers

Any alternatives to the ifelse?

I am facing a problem that I do not know how to solve. I have 2 (very large) dataframes of DIFFERENT dimensions that contain meteorological station information on a daily basis for 15 years. The problem I have is that the same station has a diff...
asked by 04.09.2018 / 10:51