Questions tagged [nested-if]

This tag refers to a code structure in which multiple if-statements are placed in a "nested" form (i.e. one if-statement is contained within another).

Use this tag for questions related to constructing, maintaining, or refactoring nested if-statements.

428 questions
0
votes
1 answer

searching an array for specific criteria and displaying

Hi I am completely new to C# programming and I am getting stuck on my code. My program is to ask the user for a city or zip code, the amount of beds/baths they want, and their price range. I need to to search through my array and then display all…
0
votes
1 answer

Excel Nested If Formula Error - ANDIF

Basically, if the value to be inputted (F33) is upto the amount in column A, it gets multiplied by the rate(%) next to it. However, this changes when the value is above 60k; there are two possibilities after 60k (which I inputted into the formula…
Mete
  • 3
  • 2
0
votes
3 answers

Java, BufferedReader, restrict user input, y/n

My question is how do I restrict user input to Y/N or y/n(in Java). Currently i'm using the equals() and plan to change them to equalsignorecase(), this should take care of the case part. However, this doesn't stop the user from entering other…
user3735449
  • 41
  • 1
  • 9
0
votes
1 answer

C Infinite loop (IF nested in FOR LOOP)

I'm trying to create a function that asks the user for a value, which then will be stored as the max or min value entered, or if the user inputs a number < 0, it will exit the dataentry() function, else it will keep asking the user for…
Mr. F
  • 7
  • 3
0
votes
1 answer

Excel Error Handling - Lookup and Return Employee ID

Request: Please assist w\ formula logic to provide error handling and Vlookup functionality across two possible columns (within table array) and return employee ID (third column in array). Goal: Create an auto-populating attendance tracker that…
Josh
  • 35
  • 4
0
votes
1 answer

Excel 2010: Nested IF statement

I have been working on created a nested IF for a document I am working on, however I have maneged to make two diffrent IF statemnets that both work but they need to be merged. The infomation its in relation to is: J K L …
Lozza1234
  • 27
  • 1
  • 7
0
votes
2 answers

Webspeed allows Nested IF statements from Progress 4GL?

Does Javascript accept nested IF statements coming from Progress 4GL? This piece of code below is placed inside the document ready function, is this acceptable in javascript? When the pdf appears, it shows nothing.. :(