Member Avatar
Can a else if, or else statment contain a condition ? If the condition is not meet then, nothing happens other wise one of the else if or if statements is read ?
by Siberian 1 in Web Development ()
Member Avatar
Hi, Im trying to extract data from sql server where conditions are multiple and variying I have a datagridview with 2 columns ID and Name I need to create Select Query to extract data where condition is 'ID should be equal to the value or values in Datagridview ID Column. …
by Lethugs 8 in Databases ()
Member Avatar
i write a code of multithreading in which arise an race condition code is below ... but problem is that i handle it by ... in line no ... and ... but it is not handling why?? i don't know its output is ... output should be display ... whats …
by moaz.amin.37 -12 in Software Development ()
Member Avatar
Wordpress - I want to use a title condition for displaying info on a page, from a MySQL table "country". The condition must compare the title with the names in the column "name" and when it match a value than display on the page the text from column "description" from …
by leadcrumb in Web Development ()
Member Avatar
I made a new MySQL table in Phpmyadmin in Wordpress in the same database from Wordpress but a new table. I want to make a new page and add a script in the body that allows: 1. when i insert the page title to the new page, the script should …
by leadcrumb in Web Development ()
Member Avatar
Hi Just asking for a better solution for my approach in getting sql result with different multiple conditions based on comboboxes. I have a 4 comboboxes, for Branch, Type, Status and other info. User can select conditions from this comboboxes. The default value is "All", meaning no specific condition at …
by Lethugs 8 in Databases ()
Member Avatar
How To Determine The Best Score? I am doing a lab regarding 'guess number game' Actually,the answer should be the random number,but I set the exact number to 88,because it is easy for me to test other requirement. I need to printf("Best Score so far [X]") How to make comparison …
by Ng in Software Development ()
Member Avatar
I have 2 processes (producer and consumer) sharing an int deque in shared memory, I have the producer process put 2 numbers in the deque and then it gets in a wait state losing its mutex lock. I then have the consumer process removing the numbers and printing them. It …
by rudasi -2 in Software Development ()
Member Avatar
Hi everyone! So, I hereby hope to show that I've made progress in coding java (largely due to the help of this great community). I want to thank everyone for dealing with me (especially James). :) The goal: The code below is supposed to seed a layout of boats into …
by Pobunjenik 27 in Software Development ()
Member Avatar
Hello Good day. Here is the problem I am trying to solve. I have a table as seen below. My GOAL: Columns A through G are going to be filled with integers. (I have already created an integer model so that these cells only take integers). As the cells in …
by CoilFyzx in Software Development ()
Member Avatar
hai everybody, i need help in multiple true if condition this syntax working only one condition is true. more than one condition is true meand excute only first statemnt i want to more than one true condition execute all the fucntion plz help me.
by Vijaysurya -2 in Web Development ()
Member Avatar
In this code, I need to put a limitation in every part where the user is asked to input data. The user will be asked to input a grade ranging from 50-100, and if his input is not in the range, the program will display a warning, and if the …
by GeneClaude in Software Development ()
Member Avatar
Hi, I'm new to junit. I want to create test cases for if condition,loops. do we have any guidelines to write test cases for if conditions.Can any1 explain with an example. Thanks in advance. Lavanya
by Lavanya1312 in Software Development ()
Member Avatar
Hello, I was given a question a few few days back to write a program that lets a user enter a value for an angle and quadrant in which the angle lies is printed using switch statement. I was able to make this program using if-else very easily but making …
by chirag_mittal in Software Development ()
Member Avatar
hi. uhm. im having a problem with coding such conditional statement that would check if a certain input contains a certain subs tring. for example. i have a text box that is used for the user to input a string. (0,1) then i have a command button to determine if …
by yeeitsneo in Software Development ()
Member Avatar
Here is code which i am using Please check it first for(x=0; x<=y; x++){ if(a=x||b=x||c=x){ printf("Value =%d",x); } } In this code x is a base for the loop i want loop till y (variable). Now inside the loop i want to check a condition if x (variable) is equal …
by DezineGenerator in Software Development ()
Member Avatar
I am working on improving the visual appeal of table rows. The data in table rows is generated dynamically and has lots of information. There is a column in that table which gives the time when that particular information row was issued. On the basis of the days/months etc before …
by anubhavk in Web Development ()
Member Avatar
Hi Everyone, I want to write a condition for Datetime to show gridview. The condition is that the gridview has to show data for updating datas in DB only from Friday 5:00pm to Saturday 4:00PM How can I give this condition.I had tried various datetime methods but i cant figure …
by pavankumarr 12 in Web Development ()
Member Avatar
Hi i'm new to xslt the below code for getting chart in pdf after clicking the chart checkbox <xsl:if test="$chartimage"> <fo:block text-align="center" space-after="8em"> <fo:external-graphic xmlns:fo="" scaling="uniform"> <strong><xsl:attribute name="src"></strong> <xsl:value-of select="concat(concat('url(',$chartimage),')')" /> </xsl:attribute> </fo:external-graphic> </fo:block> <xsl:if test="$chartPageBreak='true'"> <fo:block break-after="page" /> </xsl:if></xsl:if> bold coded setted attribute name through that they are getting …
by jeraldmuthu in Software Development ()
Member Avatar
Hi masters! I have a problem with my while loop. I realised that my code does not work the way I want. It has to check if sum of def, mid and att variables is different from 10 or if style variable is different from multiple strings. So if any …
by niggz in Software Development ()
Member Avatar
Hello, I have a string taken as input from user. I just want to check if a particular character within that string, is part of Standard English character set or not. How do I code the IF condition for this purpose? Regards, Arvind.
by arvindikchari in Software Development ()
Member Avatar
Hi! On school we got exercise to calculate how much the length of substance grow when we know original length and temperature change. So,the case goes that i have value temperature coefficient of different substances and i have to multiply them. I'd like to it without doing several condition statements. …
by Toikkala in Software Development ()
Member Avatar
Hi, is it ok to use an if condition as a presence check, this is my code - if (textBox1 != null) { MessageBox.Show("Dont Leave Blank"); my code runs however no matter if there is text in textbox1 or if its left empty it shows "Dont Leave Blank" any suggestions? …
by ppatryk in Software Development ()
Member Avatar
Hello! I'm a beginner in the worl of C++. I'm building a program that acts as a launcher for a game. In it I have Start and Exit button. What I want the Start button to do is start an .exe with extra conditions: IP and Port. if (nResponse == …
by DKDeath in Software Development ()
Member Avatar
Hi I'm trying to modify a Shipping module for an online shop but I'm not getting it to work...I want to put two options on that, if customer chooses first option he gets one price for the shipment if he chooses second option then he gets a different price. The …
by xamonix in Web Development ()
Member Avatar
Do you know that there is clean way of doing what C-language ternary operator ? does in Python's recent versions. It is if with special twist. The syntax is: 'The value if true' if <condition> else 'Value when false' Values can be any type. You can put this structure to …
by pyTony 888 in Software Development ()
Member Avatar
Hello I was helping a fellow daniwebber and I noticed that I have no idea if it is possible and how the syntax works for it. Any help appreciated. example of how I think it works. function retTrue(){ return true; } //code in if if(retTrue()){ //do some php }
by liamfriel 4 in Web Development ()