[jawsscripts] Re: Syntax for getting one function to run conditionally if another one was successful

  • From: Jackie McBride <abletec@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sat, 24 Feb 2018 11:23:21 -0700

That's how I'd advise u as well, Rod.

On 2/24/18, Steve Spamer <stevespamer68@xxxxxxxxx> wrote:

Rod, obviously no idea what these functions are doing, but here's an idea.

Function1 ()
Var
    Int blnResult

Let blnResult = FALSE

If This function does whatever it's supposed to do Then
    Let blnResult = TRUE
Else
    Let blnResult = FALSE
EndIf
Return blnResult
EndFunction

Script
If (Function1 == TRUE) Then
    Run Function2
Else
    Don't do anything
EndIf
EndScript

HTH, Steve.
-----Original Message-----
From: rodalcidonis@xxxxxxxxx
Sent: Saturday, February 24, 2018 5:48 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Syntax for getting one function to run conditionally

if another one was successful

Hi guys:

This is indeed basic but I cannot think of the syntax to run a function
based on the success of another function.

Script DoSomething()
function1()
If function1()) was successful, then run function2()

EndScript


Thanks for any suggestions



__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts




-- 
Remember! Friends Help Friends Be Cybersafe
Jackie McBride
Helping Cybercrime Victims 1 Person at a Time
https://brighter-vision.com
__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: