How can I compare two string value in ResponseBody? #552

Closed
opened 2025-12-29 15:26:47 +01:00 by adam · 1 comment
Owner

Originally created by @comil4444 on GitHub (Nov 14, 2023).

Seeing this issue: https://github.com/WireMock-Net/WireMock.Net/issues/892#issuecomment-1437172804
Wanna know is there a way I can achieve this now?
{{#if request.Body=='A'}}company a{{else if request.Body=='B'}}company b{{else}}not found{{/if}}

Originally created by @comil4444 on GitHub (Nov 14, 2023). Seeing this issue: https://github.com/WireMock-Net/WireMock.Net/issues/892#issuecomment-1437172804 Wanna know is there a way I can achieve this now? `{{#if request.Body=='A'}}company a{{else if request.Body=='B'}}company b{{else}}not found{{/if}}`
adam added the question label 2025-12-29 15:26:47 +01:00
adam closed this issue 2025-12-29 15:26:47 +01:00
Author
Owner

@comil4444 commented on GitHub (Nov 14, 2023):

Register a custom helper to do this.

@comil4444 commented on GitHub (Nov 14, 2023): Register a custom helper to do this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#552