A proposition or statement about what should or does occur when a certain condition is met.
2007, Nicholas Rescher, Conditionals, Disposition statements are always tantamount to conditional if-thens. (“Glass is fragile†amounts to “If glass is subjected to a shock, it will breakâ€; “Wood is combustible†comes to “If wood is exposed to fire, it will burnâ€; and so on.)
2008, Selmer Bringsjord, The Cambridge Handbook of Computational Psychology Chapter Declarative/Logic-Based Cognitive Modeling, This rule says that if in a derivation you have an infinite list of if–thens (i.e., formulas of the form φ → ψ) where each consequent (ψ) in each if–then is an element of some infinite set Φ, then you can infer to an if–then whose consequent is the infinite conjunction obtained by conjoining all the elements of Φ.
2015, Gretchen Rubin, Better Than Before: What I Learned About Making and Breaking Habits—to Sleep More, Quit Sugar, Procrastinate Less, and Generally Build a Happier Life, Over time, I created a list of some of my own if-thens: If I want to get a lot of original writing done, I go to the library, where I don’t have Internet. If offered wine, I decline.
2023, Alicia Britt Chole, The Night Is Normal: A Guide Through Spiritual Pain, Or maybe her if-then was shaped more like a question: Surely God would not have brought this child here if it was not His plan to keep her here, right? Our if-thens can be quite similar. If God really loves me, then He won’t let my heart be broken again. If God allows a door to open, then walking through it will bring me joy.
(programming) A conditionalstatement; a line of code that specifies a boolean condition to check and a statement to execute when that boolean evaluates to true.
1981, List Formatter makes properly-spaced & indented listings with page breaks; each statement on new line, if-thens and loops called out; a great de-bugger!
1985, 1985 Symposium on Logic Programming: July 15-18, 1985; Sheraton Boston Hotel Boston, Mass., Storing (closed) predicate definitions in this form (if all the predicates are so stored, and there never were any cuts or if-thens in the first place, we have the well-known "completion" of a logic program) makes the coding of source-level tools simpler.
1989, David W. Long, Multiresource Management of Ponderosa Pine Forests: Nov. 14 - 16, 1989, Flagstaff, Arizona Chapter Insect Pest Management Expert Systems in Multiresource Management of Ponderosa Pine, 1. The problem is well bounded, 2. There are many empirical if/thens that lead to a correct solution, 3. The total number of if/thens is sufficient to bring you close to a right answer (Mazur 1987).
1992, Individual-Based Models and Approaches in Ecology: Populations, Communities and Ecosystems, Many if-thens will degrade vector performance below that of a scalar version that computes only the correct branch.
1994, Think of this process as programming with pictures, complete with loops, pauses, if-thens, and so on.
2000, Harold J. Rood, Logic and Structured Design for Computer Programmers, Finally, they use descriptions and statements from set theory to provide material for flowcharting problems that contain multiple decisions (nested if-thens).
2001, Mark Guzdial, Squeak: Object-Oriented Design with Multimedia Applications, Simple statements (like assignments and if-thens) are executed serially.
2002, Brian Bagnall, Core Lego Mindstorms Programming, Most people, when they start programming their robot, will think of the program flow as a series of if–thens, which is reminiscent of structured programming (Figure 6–3).
2004, Designing for Virtual Communities in the Service of Learning Chapter Co-Evolution of Design and Pedagogy Online, But I think that the badge system is very motivating, and if one of your goals is to get students to become more proficient in the programming, then this is certainly a way to do that. Because you set not a very high bar toward attaining these things and some of them I think are quite challenging – you know, doing the ones for lists, and the if-thens, and all that.
2004, However, you can neither create multiple if-thens that execute simultaneously, nor create a rule based on a file’s Kind—so this utility’s utility is limited (November 2003).
2005, Make: Technology on Your Time, Have you noticed any similarities between “programming†a mechanical system and writing software? The logical problems are absolutely the same. In the mechanical and in the computer, there are equivalents of variables and if-thens.
2012, Kim Stanley Robinson, w, There’s some recursive programming in her that gives more weight to associative and metaphorical thinking than to logical if-thens.
2018, Kirsten Weiss, The Gargoyle Chronicles, “Do you deal with chaos theory in your work?†“Me? I guess I just think it's fascinating. I see chaos as a series of if/thens. But that's the programmer in me.â€
2018, Catherine Brereton, Women Scientists in Math and Coding, Today, programmers mostly use “if/thens†instead of 0s and 1s.
2020, Game AI Pro 360: Guide to Architecture, Tests can be implemented by atomic actions that simply succeed or fail; if–thens can be implemented by composites like Selectors that execute the first nonfailing action, and blocks of code can be implemented by Sequences that execute all their nonfailing actions or Parallel nodes, which allow multiple actions to be executed concurrently (Champandard and Dunstan 2012).