Questions tagged [conditional-execution]

21 questions
0
votes
2 answers

VBScript - Pass shell command using conditional execution with "choice" command

Not sure this is doable but I'm trying to write the following batch script in a single line: @echo off echo Shutdown initiated... echo. choice /c xy /n /t 10 /d y /m "To cancel shutdown press "X"" if errorlevel 2 goto EXEC if errorlevel 1 goto…
Albert F D
  • 529
  • 2
  • 13
  • 33
0
votes
2 answers

SQL Server: How to call a UDF, if available?

Most systems will have a user-defined function (UDF) available. Some will not. i want to use the UDF if it's there: SELECT Users.*, dbo.UserGroupMembershipNames(Users.UserID) AS MemberOfGroupNames FROM Users Otherwise fallback to the…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
0
votes
1 answer

Is this method of conditional javascript loading of any value?

I am building a multi-page front end for a web application. There is minimal javascript for the UI, but I know there will a great deal of javascript to handle the back-end, so I am doing my best to keep it as sparse and limited as possible. I want…
dgo
  • 3,877
  • 5
  • 34
  • 47
0
votes
1 answer

Conditional execution in R based on decision tree

I have a CSV file with predictor variables like blood pressure (BP), heart rate (HR), weight, body surface area (BSA), body mass index (BMI), age, and gender. There is a decision tree based algorithm for these variables that divides these patients…
Oposum
  • 1,155
  • 3
  • 22
  • 38
0
votes
3 answers

Javascript function as a variable in loop

Can you please help me with one loop with functions: I have 7 functions: function menu1(){}; function menu3(){}; function menu4(){}; function menu5(){}; function menu6(){}; function menu7(){}; And what i need to do is load as a function…
0
votes
3 answers

Javascript conditional execution and simplification

I have the following script which works great however I think this can be simplify, right? also, I'd like it to trigger only once. Example, user inputs "My Title". Script executes and user sees "my-title" in slug field. If user replaces title value…
olimart
  • 1,529
  • 3
  • 17
  • 32
1
2