Questions tagged as 'if'

2
answers

comparing a variable with a vector or list

Usually to perform a conditional using a vector or a list and it is necessary to perform a for and perform the if line by line in this way. //sendo item uma string e listaItens um List<String> for(String lista: listaItens){ if(item.e...
asked by 02.03.2018 / 15:59
1
answer

Send the form to different addresses according to zip code

I have a form that calculates the delivery rate according to the CEP, until then everything working 100%. My client is opening their business in another area and wants the orders to be sent according to the area. Today all requests are sent t...
asked by 06.03.2018 / 15:33
1
answer

Redirect pages using if, else if, and else attributes What is wrong? [closed]

My php code <?php include "conectar.php"; //comando para iserir dados direto do formul?rio para o banco de dados $nome=$_POST["nome"]; $cpf=$_POST["cpf"]; $identidade=$_POST["identidade"]; $telefone=$_POST["telefone"]; $celular=$_POST["...
asked by 16.11.2017 / 19:10
1
answer

Work in C "Bank" giving error

Hello, I am doing a work in c and are giving the following error: after I make the deposit / withdraw instead of returning to the menu the program asks to retype. main(){ int matriz[5][2],i, j,b,dep,v,a,x,saq,sald; printf ("\nBEM VINDO AO...
asked by 08.11.2017 / 09:22
2
answers

How to declare IF on Ionic

I have the following code, it checks the value of _meditaTotal if it is greater than 70 the variable icon receives 'green' if it is less than 70 and greater than 50 variable icon receives 'yellow' and if it is less than 50 variable icone gets 'r...
asked by 21.10.2017 / 21:57
1
answer

Count the number of records of my IF

IF (count (UCID)> 1, count (UCID), '0') , it brings me approximately 500 record lines, being numbers 2 above, I want to be able to do a COUNT in that IF to display those 500's in a separate column. Anyone have a suggestion? Thanks in advance....
asked by 06.06.2017 / 20:23
1
answer

How do I get the MenuIten.Click event to run in an if loop? Delphi

I'm setting up the login part of my system, but I'm having a big problem. My cancel button on the login screen it needs to receive two features. The first is that being clicked before the main system screen is opened the application is all finis...
asked by 10.04.2017 / 14:44
1
answer

Entry in if () but instructions are not executed

I am trying to make a chat using pipes (chat between server and client). I made an exit condition, in case the server wants to quit / disconnect the chat it writes "quit", in the client in the same way. Doing "quit" from the server is working, h...
asked by 27.05.2017 / 22:25
2
answers

Creating rule to create time based on delivery rate

I have a condition in my form that calculates the delivery time of the orders, follows the rule below: date_default_timezone_set('America/Sao_Paulo'); $Agora = date('H:i:s'); $HoraServico = date('H:i:s', strtotime('+69 minute', strtotime($Agor...
asked by 29.08.2017 / 23:57
2
answers

Multiple if in an SQL condition

I'm trying to use 2 if s but the result always returns empty, when I use only if it will. SELECT aci_codigo, aci_valor_pagamento, bai_fk_pes_codigo, aci_tipo_pagamento, aci_fk_ftm_codigo, aci_nosso_numero, ftm_descr...
asked by 02.12.2016 / 15:07