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

  • From: "Steve Spamer" <stevespamer68@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 24 Feb 2018 18:09:15 -0000

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

Other related posts: