Binary Multiplication Operation
Function Name
$multiply(intA, intB)
Function Description
Implements the multiplication operation between parameter A and parameter B. Parameters A and B support the following types:
- Numbers
- Local parameters
- Binary operations
Application Scenarios
The binary multiplication function can be used in the following scenarios for API automation:
- Request URL
- Request header
- Request body
- Checkpoint property
- if condition
- for loop interrupt condition
Example
- Request URL
As shown in the following figure, the value of the test parameter in the request URL is the binary multiplication function. Parameters A and B in the function are 100.
- Request header
As shown in the following figure, the value of parameter add in the request header is the binary multiplication function. Parameter A in the function is the binary division function $divide(1000,100), and parameter B is -1.
- Request body
As shown in the following figure, the binary multiplication function is used in the request body. Parameter A in the function is the binary addition function $add(1000,1000), and parameter B is the binary subtraction function $subtract(1001,1000).
- Checkpoint property
As shown in the following figure, the target value of the checkpoint property result is the binary multiplication function. Parameter A in the function is the local parameter test, and parameter B is 1. For details about how to set local parameters, see Local Parameters.
- if condition
As shown in the following figure, the target value of the if condition is the binary multiplication function. Parameter A in the function is 100, and parameter B is the environment variable status. For details about how to set environment parameters, see Setting Environment Parameters of an API Script.
- for loop interrupt condition
As shown in the following figure, the target value of the for loop interrupt condition is the binary multiplication function. Parameters A and B in the function are 100.
- for loop interrupt condition
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot