JIO. / JNO. - If Online

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network >

JIO. / JNO. - If Online

JIO. / JNO. - If Online

Previous Top Next


MiniRobotLanguage (MRL)

 

JIO./ JNO.
Jump If Online / Jump If Not Online

 

clip0597

 

 

Intention

 

This command is used to test if the Computer is Online.

It has 3 Modes of Operation.

 

1. Test if ONLINE, hereby you do not give any Parameter P1.

 

In this variant we test the connectivity if ANY of the following sites can be reached, if so we are ONLINE.
Test URL 1="http://www.w3.org"

Test URL 2="http://www.google.com"

Test URL 3="http://www.bing.com"  

 

JIO.|Label

MBX.You are NOT ONLINE

ENR.

:Label

  MBX.You are ONLINE

ENR.

 

' Here is the negative Form JNO.

' Maybe this will be most often used.

JNO.|Label

MBX.You are ONLINE

ENR.

:Label

  MBX.You are NOT ONLINE

ENR.

 

2. Test if you can connect to OPEN AI Services.

 
Hereby only the connection to: "https://api.openai.com" is checked.

 

JNO.OAI|Label

MBX.You can reach out to Open AI.

ENR.

 

:Label

MBX.You can not reach out to Open AI.

ENR.

 

 

 

3. Test if a Site is ONLINE. Hereby you do specify the Site-Address as Parameter.

 

' In this example we also use Variables for condition-URL and Jump-Target

$$URL=http://www.smart-package.com

$$LAB=Label

JNO.$$URL|$$LAB

MBX.Your SPR-Site is NOT ONLINE

ENR.

 

:Label

MBX.Your SPR-Site is OFFLINE

EIF.

 

 

 

Syntax

 

JIO.[P1]|P2

JNO.[P1]|P2

 

 

Parameter Explanation

P1 - Can be omitted, or can be "OAI" or can be a "http://"-Address of your choice, that should be tested.

P2 - Label / Jump Target, if a ":" is added then a GSB. is used instead of a Jump.

 

Example

 

'*****************************************************

' EXAMPLE 1: JIO.

'*****************************************************

 

 

 

 

Remarks

This Command has not been tested with Proxy Servers.

 

Limitations:

 

-

 

See also:

 

  Test_If_Online

  IOL. / NOL. - If Online