Questions tagged as 'if'

1
answer

Register loop in if loop

I have a registration form: <form action="Cadastro.php" method="post"> Nome de Usuário: <br> <input class="form-control" type="text" placeholder=" algo parecido com o seu nome" size="30px" name="nomeUser"...
asked by 17.01.2017 / 19:42
2
answers

How Select SUM works (IF ('' , '', ''))

I'm just having a question about how select mysql works. Select SUM(IF('','','')) I'm using it but I do not know exactly how it works     
asked by 02.06.2016 / 15:19
1
answer

"No such file or directory" error but the file is stored in the database

I have the following problem: when I submit a form containing photos, the error described in the title appears. If you upload, only one photo will not appear. but even giving it error he is saving the images in the bank. Can someone tell me the...
asked by 03.12.2015 / 18:02
2
answers

Problem with conditional on React

I'm trying to do a conditional where the active component depends on a state variable. this.state = { display: 0, } State 0 is the initial state, which is changed when the user clicks a button. Depending on the button the display varia...
asked by 03.12.2018 / 21:52
1
answer

Missing IF in procedure

I did the following procedure, but in END// 'missing if' appears, does anyone know why? William helped me with this problem, but whenever I try to register, the procedure only goes to the last else . I called it this wa...
asked by 06.07.2018 / 20:11
1
answer

Condition IF - Good use practice

During a coding I had to perform the development as follows: IF (Condicao1 = True) IF (Condicao2 = True) IF (Condicao3 = True) Imprime(Mensagem); Is the way I performed best practice? Would there be a better way to accomplis...
asked by 20.08.2018 / 14:32
2
answers

Problems with If Else Statement chained in C language

I'm starting programming and I had a hard time understanding If Else in a chained way. I came across the following situation, when running the code only the first or second condition (If / Else) are possible to be true, regardless of the value...
asked by 24.08.2018 / 00:10
1
answer

Functions defined inside conditional blocks

I'm studying PHP and reading the documentation I came across this example: <?php $makefoo = true; /* Nos nao podemos chamar foo() daqui porque ela ainda não existe, mas nos podemos chamar bar() */ bar(); if ($makefoo) { function...
asked by 25.09.2018 / 01:06
2
answers

How to ignore sentence and case in Java .startsWith

This is my code: if(e.getMessage().startsWith("/reciclar") || e.getMessage().startsWith("/ereciclar")){ e.setCancelled(true); p.sendMessage("§cComando Bloqueado/Em Manutenção!"); } But if you use / RECYCLE uppercase or in a different senten...
asked by 30.07.2017 / 17:46
2
answers

Problem in the algorithm

   Statement: Read 3 integer values and sort them in ascending order. At the end, show the values in ascending order, a blank line and then the values in the sequence as read. public class ex10 { public static void main(String[] args){ Sc...
asked by 09.06.2017 / 00:10