Questions tagged as 'if'

1
answer

Error creating child node, generalized list [closed]

The error is in else of method criarFilho , I was able to find it, but I can not find solution for it. Dev-C ++ debug does not say anything. #include <stdio.h> #include <stdlib.h> // #include "decisor....
asked by 16.10.2016 / 23:24
1
answer

I doubt how to use the IF in a TRIGGER in mysql

Hello! My problem is the following I have two tables, one table called Notes and another called Students . I need to make a comparison with the child_id in the notes table and the id in the students table to only if the < in table in...
asked by 06.07.2016 / 00:31
2
answers

Picker View - Display an ImageView according to the sum of values

Hello. I'm trying to work with Picker View to display a combination of values. var pickerDataSource = [["a", "b", "c", "d"],["1","2","3","4"]]; Doubt is; how do I get results within a condition? if(row == 0) { self...
asked by 28.03.2016 / 22:55
1
answer

Conditional Tags Worpress for mobile devices

How do I use a Conditional Tag in my wordpress theme so that a particular script is not loaded on mobile devices. Is there such a tag? If it exists could you show me an example? In this example the script would only load in the home of the...
asked by 16.09.2015 / 22:52
1
answer

Comparing dates of an array in PHP

I'm trying to compare the dates coming from an array of the database so I can organize them within a timeline. The problem is that I can not compare dates to know where to put each entry ... Maybe the problem is that within the array the date...
asked by 07.11.2014 / 23:03
2
answers

IF with 2 distinct variables for various scenarios

I'm trying to make a condition in php this way: $Telefone = ""; $Celular = ""; Where: If both empty shows echo sem Telefone e nem Celular If variable Phone = 222-2222% with% If instead echo Telefone: 2222-2222 If bot...
asked by 20.12.2018 / 02:05
1
answer

Problem using if and elif Python

I'm having a problem using if and elif to create an extract table by taking bank information. If the transaction category is a deposit in the bank, I want it print in a way, but after it has passed the first if , if...
asked by 13.12.2018 / 16:20
1
answer

How to condition e-mail content with chosen variable in form?

I am trying to condition the format of the email sending by a certain option chosen by the user, in the Subject / Script field: If the option is SCRIPT, the contents of the $ html variable will be sent. If it is INFORMATION, the contents of the...
asked by 02.12.2018 / 15:08
1
answer

How to populate multiple tags in an if / else using XQuery?

I want to do something like: for $var in $myValueOfVar return if ($var= "X") then <tagA>A</tagA> <tagB>B</tagB> <tagC>C</tagC> else <tag...
asked by 29.10.2018 / 14:16
2
answers

if with array listing

I'm picking up using arrays, I need to check values and make decisions depending on what I find in the listing. id | volume_total | volume_entregue | volume_restante 1 15 10 5 2 10 10...
asked by 19.09.2018 / 20:56