Questions tagged as 'condiciones'

1
answer

Success Juggler in Python

I have to create a program that asks the user for natural numbers or 0 to finish and for each number that the user enters, the program must create a juggling sequence and display them on the screen. In turn, when the program ends, you...
asked by 29.11.2018 / 15:43
2
answers

How and when are isset () and empty () used correctly?

I have seen on many occasions when receiving the data of a form the following check: if (isset($_POST['campo1'])) { // Resto de código } What happens if the $_POST['campo1'] value is empty? Or on many other occasions I have se...
asked by 06.11.2016 / 13:51
7
answers

How to know what if condition is being fulfilled in PHP

I have a statement IF with several conditions OR there is some way to know what condition is being met: if ($variables_tax_id_next == 201 || $variables_tax_id_next == 206 || $variables_tax_id_next == 211 || $variab...
asked by 18.10.2016 / 00:20
3
answers

Reduce amount of conditional

I have a small function that delivers the value that has the highest priority, which for now is not defined anywhere, just by order as I evaluate the values: public function obtenerValorMasImportante($datos = null) { if ($datos->getDat...
asked by 16.08.2016 / 21:37
1
answer

difference between if (condition): else: endif and if (condition) {} else {} in php

I have a question about php, I'm pretty new to web programming and I still messed up a bit with php. my question is, in a php file with the following structure <!DOCTYPE html> <html> <head> <meta charset="utf-8">...
asked by 08.11.2017 / 17:32
5
answers

Add two conditions C?

What I'm trying to do is make a C program, that gives me the final grade of a subject and depending on the number, show me a message on screen. #include<stdio.h> #include<conio.h> main (){ float cal1=0, cal2=0, cal3=0, cal4=0...
asked by 31.10.2016 / 04:31
3
answers

Problem with while loop together with if conditions

I have a problem that I think any intermediate programmer can solve. The case is that I have a while loop in which if I put in the input (for example) "add" and add the numbers the subtraction is done but then the while is executed again and it...
asked by 02.12.2016 / 21:28
1
answer

How to use CASE within WHERE in SQL Server

I have the next part of a procedure on sql Server. FROM Personas as p inner join Estados as e on p.EstadoId=e.Id inner join ListaMarketing_Persona as lmpe on p.Id=lmpe.IdPersona inner join ListaMarketing as lm on lmpe.IdListaMarketing=l...
asked by 28.10.2016 / 17:01
2
answers

Conditional on PHP

I have the following code in HTML and PHP. I can not find the error in the PHP code, because it does not read the expressions and does not throw the result at me. I'm really new to programming. $( document ).ready(function()...
asked by 28.09.2016 / 02:36
2
answers

Case in sql query

I'm doing a query in sqlsrv 2000, to several tables where there are two fields estado and estado2 (that do the same thing, I do not know why they did it that way) that they keep 0 and 1 . I currently have a case in...
asked by 22.06.2016 / 14:57