Skip to main content

Questions tagged [conditions]

18 votes
7 answers
4k views

I'm preparing a lecture where I will start with a many-branched conditional statement and replace it with a table. For example, I could start with: function getMonthName(monthNumber) { if (...
Ellen Spertus's user avatar
1 vote
1 answer
337 views

I'm trying to make a DFD for this scenario: after admission, the patient gets the service he needs. I've been trying to do it using this diagram (there are 3 available services): but I don't think it'...
Ahmad Ahmad's user avatar
0 votes
4 answers
222 views

I have the existing code provided below: if (!$existing_records && !$has_required_field) { return 'Skip Update, no records found'; } elseif (!$existing_records && $...
Muhammad Dyas Yaskur's user avatar
0 votes
1 answer
215 views

I have the code but I want to be pseudo as possible so I learn from other ways as much as possible. So what I am building is web based tool and in one section we have a table. This table renders lines ...
Codemenot's user avatar
2 votes
1 answer
3k views

Often I find conditional statements such as: if (life_max < max): if (expand): do life_max = max else: if (life_max > max) and not (expand): do life_max = max; Although readable, ...
Chibueze Opata's user avatar
2 votes
1 answer
298 views

We have a "workflow orchestration" system at work. It works something like this: You configure what to run (in a database table), such as: NameOfStepATHingToRun ="weather_data" ...
Neil McGuigan's user avatar
3 votes
1 answer
4k views

Stallings' Operating System book says about condition variable in Solaris, A condition variable is used to wait until a particular condition is true. Condition variables must be used in ...
Tim's user avatar
  • 5,555
-2 votes
1 answer
982 views

I have an abstraction that defines something like a command pattern, interface Participant { void proceed(); } Participants are grouped in a collection and are called all together. But each ...
lucasvc's user avatar
  • 141

15 30 50 per page
1
2 3 4 5
9