Questions tagged as 'if'

1
answer

C # - If in ComboBox Exercise Caelum

Good afternoon, I've been trying to resolve this exercise in Caelum's C # handout for a few hours, but I think it's a long way from solving it. I would like to know how to use an IF within a ComboBox to make it distinguish between a checking acc...
asked by 27.12.2017 / 17:22
0
answers

Display an image if value "7" is in row "Codes"

Thank you for the help you will offer me. I have tried many things, but now I am not advancing at all. I was able to put this code but it does not show me any image. There on top in my $results = $query->fetchAll( PDO::FETCH_ASSOC );...
asked by 23.11.2017 / 13:19
1
answer

Setting minutes at the time of operation

I have the following code, where it determines the time of delivery. Here is the code: function delivery(){ var cep1 = document.getElementById("cep1").value; var cep2 = document.getElementById("cep2").value; var cep = cep1 + "-" + cep2;...
asked by 29.09.2017 / 20:01
1
answer

How to replace / optimize multiple ifs in C?

I'm a beginner in C language, I'm doing an activity that is to enroll students and averages in a double-chained list, everything is working, but I believe I'm using too many ifs, is there any way to do these conditions without using as many ifs?...
asked by 16.07.2017 / 05:59
2
answers

Jumping line before time

<script> var i = 0; while(i < 100){ n = 1; resultado = n + i; if(0 === (i%10)){ document.write(n + '-' + resultado + '<br>'); }else{ document.write(n + '-' + resulta...
asked by 16.06.2017 / 07:33
1
answer

Python No if error

I'm having an error in if and I do not know how to fix this error, I'm using Python 3.6 and Pandas for reading, writing and data analysis. df1 = pd.read_csv("JonnyTheBoy10.csv", usecols=['ART_TIPO', 'ART_DESIG', 'PORTA', 'CP4', 'CP3', 'LOCALID...
asked by 09.06.2017 / 11:05
1
answer

PHP error when changing host

Good afternoon, I used an online host with php 7 and I had the following syntax if(!saber_se_não_existe) {} It has always worked as well as well if(saber_se_existe) {} So, I have refactored my entire code by replacing EMPTY and ISSET w...
asked by 02.06.2017 / 18:59
2
answers

how to get value from the bank in an if using php

people I have a user table that has a category field that is a boolean field, at some point in my code I need only if category is true I show an option in my menu but I do not know how to put this in the if, somebody can help me, I'm trying like...
asked by 26.04.2017 / 19:44
2
answers

How to do an if / else within a route?

I have a form that has two types of users: administrators and developers and each has its post login page, but even logged in as administrator, I can go to the developers pages. I need to fix this!     
asked by 19.04.2017 / 19:12
1
answer

Difference between If and IIf

In VB.NET, what's the difference between using If and IIf under these conditions? If Condicao Then x() Else y() End If IIf(Condicao, x(), y())     
asked by 23.09.2016 / 04:18