CALLISTO V2 (serv.man5). Introduction to scripting in Callisto v2 (AS version) - Sharp Copying Equipment User Guide / Operation Manual. Page 17

Read Sharp CALLISTO V2 (serv.man5) User Guide / Operation Manual online

 
 
Business I.T. Systems Ltd 
Examples of if Statements within Callisto Script 
This example tests to see if the number of pages for the print job is greater than ten. If it is 
then it prints the jobs. 
 
 
 
if Job.Pagecount > 10 then 
    begin 
 
       Queue1.Print; 
       Job.Complete;  
 
   end; 
 
 
 
 
Another form of the If Statement is the If-else construct. This tests the condition and if it is 
true then it will execute the commands, otherwise it will executes another set of commands. 
 
 
 
 
 
 
 
 
 
if 
condition 
then 
 begin 
 
    //Executes Statements if condition is true 
 
  end         
Å notice that the semicolon disappeared now ! 
else 
  begin 
 
   
 //Executes Statements if condition is false 
 
  end; 
 
Examples of If Statements within Callisto Script 
This example again tests the number of pages within a print job. If it is number of pages are 
greater than ten pages then the job will be printed by the first queue. Otherwise it is printed 
by the second queue. 
 
if Job.Pagecount > 10 then 
    begin 
 
       Queue1.Print; 
       Job.Complete;  
   end 
else 
  begin 
 
      Queue2.Print; 
       Job.Complete;  
 
   end; 
 
 
 
 
 
 
 
 
 
Introduction To Callisto Scripting.doc 
 
Page 17 
Page of 33
Display

Click on the first or last page to see other CALLISTO V2 (serv.man5) service manuals if exist.