Posts

Showing posts from November, 2016

Jython operators and sequences in wsadmin

Image
Welcome back to Jython learning blog again. today I have explored different categories of operators how they can be used in Jython for wsadmin. prerequisites for this is you must have a Jython for WebSphere installed on your VM and you are on wsadmin prompt. Types of operators (inherited from Python): Arithmetic operators Comparison operators Relational operators  These simple experiments would give you a base for building automation scripts in your projects. Jython Operators on wsadmin   How can Jython deals with Arithmetic operators Every language supports the Arthematic operators and in Jython same operators as in C or Python languages. wsadmin>x,y = 10, 20 wsadmin>print x, y 10 20 wsadmin>x+y 30 wsadmin>x+y+30 60 wsadmin>y-x 10 wsadmin>x-y -10 wsadmin>x*y 200 wsadmin>x**2 100 wsadmin>y/x 2 wsadmin>y%x 0 How to use Jython Comparison operators? The comparing operators mostly used in the 'if-else' or 'while' blocks which returns eith...