Extensions.DiagCom.IsPositive

From emotive
Revision as of 09:43, 12 October 2018 by Hb (talk | contribs) (→‎See also)
Jump to navigation Jump to search

Classification

Name IsPositive
Short Description Test, a response to positive or negative
Class Term
Extension OTX DiagCom extension
Group Response related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

BooleanTerm = DiagCom.IsPositive(ResponseTerm);

Description

The IsPositive term tests whether the specified response is positive or negative.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
Boolean True if the response is positive, otherwise false.

Properties

Name Data Type Class Default Cardinality Description
Response Response Term - [1] Response object.

Examples

DiagCom.Result Result1;
DiagCom.Response Response1;
DiagCom.ResponseState ResponseState1 = @ResponseStates:FAILED;
Boolean Boolean1 = false;
DiagCom.ComChannel ComChannel1;

ComChannel1 = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentVWECUHardwVersiNumbe"), {}, {}, false, false, Result1);
Response1 = DiagCom.GetFirstResponse(Result1);
ResponseState1 = DiagCom.GetResponseState(Response1);
Boolean1 = DiagCom.IsPositive(Response1);

See also

GetAllResponses
GetFirstResponse
GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
ExecuteDiagService
GetFirstResult
GetAllResults
GetAllResults