Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

View to merge multiple rows of a table in one [duplicate]

I have a table in which for every mission i get multiple rows with the status of said mission # ID, ID_MISSION, CODE, ERROR, TIMESTAMP '8', '1', 'MSN_ACK', '0', '2025-04-29 15:02:16' '9', '1', '...
Francesco D. Bossio's user avatar
-3 votes
0 answers
107 views

How can I restructure my code to avoid having a loop where each iteration depends on multiple if-else branches? [closed]

I have this code for my school assignment: void doAction(int &counter, int &position, int action){ if (action == 3) { position = (position + 1) % numOfValues; } else { counter = (...
tema's user avatar
  • 5
-1 votes
0 answers
26 views

Java error: missing return statement in BinSearch [duplicate]

I am figuring out searching algorithms and when I copied the following code, I received the error "missing return statement". I would also like to know why int k (supposedly the number I'm ...
Raimund Lampert's user avatar
0 votes
0 answers
20 views

if sum=0 in columnA then 1 else 0 not working on 1 specific row

I have a simple sum column and a simple if statement in sum 0 tjek that says "if sum antal=0 then 1 else 0" But on the last row it returns 0 instead of 1. I have tried to change the number ...
Michael Christensen's user avatar
-1 votes
2 answers
60 views

When should I use switch instead of if in Dart? [closed]

I’m confused about when to use switch vs if in Dart. I want to know which one is better for specific situations and when to choose one over the other. I tried using both if and switch to check a ...
PSAU's user avatar
  • 25
-2 votes
2 answers
80 views

Why do i need to use rising_edge in this VHDL code? [duplicate]

so what is the difference between these two vhdl programs: process(clk) begin if(clk=1) q<=d; end if;end process; and this one: process(clk) begin if(rising_edge clk) q<=d; end if;end ...
Gahit Moncef's user avatar
0 votes
1 answer
78 views

Using 'if let varName {...}' in Swift when varName is previously declared as a var

Fairly experienced coder here. Here is some Swift code in a playground: var word : String? = "Hello, World!" if let word { print("it is a \(word)") } else { print("The ...
Eric Neufeld's user avatar
4 votes
4 answers
181 views

How to do multiple if/else logic calculations and apply them to several columns in a dataframe?

Suppose I have a dataframe df in R like this: A B C D 1.4 4.0 6.0 1.0 2.5 1.5 2.4 2.3 3.0 1.7 2.5 3.4 Say I want to write a function that checks the value of each cell ...
Astral's user avatar
  • 209
-2 votes
0 answers
31 views

CS0029 Error message. How can I convert string type to bool type [duplicate]

I have another problem at c#. I have a label and a Textbox. The label can take only two value as "Personal" and "Service". if the label's value is "Personal", the TextBox'...
bsk's user avatar
  • 1
0 votes
1 answer
37 views

Microsoft PowerApps Table Lookup - Navigating to Different Screens Based on User Type

I'm having trouble getting this login page to work. It needs to take the user to a specific page depending on their credentials. There are 3 different tables for the different types of users. This is ...
OLLY M's user avatar
  • 1
0 votes
4 answers
168 views

Can I check the value of the array within a two dimensional array in C

char array[8][13]; memset (&array, 0, sizeof(array)); /* this is a rough example this is in a struct that is memset */ if (array[0]) { printf("this is valid"); /* again this code is ...
John Reed's user avatar
0 votes
1 answer
95 views

Best practices for handling multiple nil/invalid checks without throwing an exception

The following ruby method is expected to return either an array or nil, depending on whether or not the api call was successful. # @return [Array or nil] - but should not throw error if anything ...
nextstep's user avatar
  • 1,482
0 votes
0 answers
35 views

If a cell contains 3 different texts then today's date

I am trying to add today's date on a column if that column contains 3 different words. I can do it with 1 word but no with 3 different. More specific: If B11 contains "Accepted, rejected or ...
Eni's user avatar
  • 1
-1 votes
1 answer
60 views

How do I make it check if the specific text is put or not with another text?

import time list = ["@gmail.com", "@yahoo.com", "@outlook.com"] email = input("Email: ") time.sleep(1.5) if email in list: print(email) else: ...
XhanjiGamer's user avatar
1 vote
2 answers
94 views

Dynamically updating and doing math on arrays in Excel

I am dynamically populating an array in Excel from another array in a different sheet based on a criteria and was successful in that but now I wish to auto update the returned total based on another ...
Jonathan Marshall's user avatar

15 30 50 per page
1
2 3 4 5
4152