# StringSignal

The `StringSignal` class monitors a string value.

## Properties

| Property    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `lastValue` | <p><code>(get) lastValue: string (set) (Not Available)</code></p><p>Specifies a string that represents the last value of the signal.</p><p><strong>Note</strong>: The signal value is updated during simulation tick. This means that the value of <code>lastValue</code> is undefined before its first update. It is also undefined for signals that aren't used for any bindings/subscriptions, because those signals aren't guaranteed to be updated at each simulation tick.</p> |

## Methods

| Method         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `concat`       | <p><code>concat(other: StringSignal): StringSignal</code></p><p>Returns a <code>StringSignal</code> containing the concatenation of the values specified by the input signals.</p><p><strong>See Also</strong>: <code>ReactiveModule.concat</code></p>                                                                                                                                                                                                                                                                                                                                                                                                  |
| `delayBy`      | `delayBy(timeSpan: {milliseconds: number}): this` Delays a signal. The argument is an object with a "milliseconds" property specifying the delay duration in milliseconds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `eq`           | <p><code>eq(other: StringSignal): BoolSignal</code></p><p>Returns a Boolean signal that takes the value of <code>true</code> every time when the value of the left-hand-side signal is <strong>equal</strong> to the value of the right-hand-side one, and the value of <code>false</code> all other time.</p><p><strong>See Also</strong>: <code>ReactiveModule.eq</code></p>                                                                                                                                                                                                                                                                          |
| `monitor`      | <p><code>monitor(): EventSource monitor(config: { fireOnInitialValue: ?boolean}): EventSource</code></p><p>Returns an <code>EventSource</code> that emits an event every time the value of the input signal changes. The event contains a JSON object with the old and new values in the format:</p><p><code>{ "oldValue": val, "newValue": val }</code></p><p><strong>Note</strong>: By default, there is no event fired for the initial value of the signal. If <code>config.fireOnInitialValue</code> is set to <code>true</code> then an event for initial signal value is also emitted. <code>oldValue</code> is unset for this initial event.</p> |
| `ne`           | <p><code>ne(other: StringSignal): BoolSignal</code></p><p>Returns a Boolean signal that takes the value of <code>true</code> every time when the value of the left-hand-side signal is <strong>not equal</strong> to the value of the right-hand-side one, and the value of <code>false</code> all other time.</p><p><strong>See Also</strong>: <code>ReactiveModule.ne</code></p>                                                                                                                                                                                                                                                                      |
| `pin`          | <p><code>pin(): StringSignal</code></p><p>Returns a <code>StringSignal</code> containing a constant value which is the value of the specified signal immediately after <code>pin</code> is called.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `pinLastValue` | <p><code>pinLastValue(): ConstStringSignal</code></p><p>Returns a <code>ConstStringSignal</code> containing a constant value which is the last value of the specified signal before <code>pinLastValue</code> is called. ConstStringSignal can be passed to a functions which accept strings</p>                                                                                                                                                                                                                                                                                                                                                        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sparkar-community.gitbook.io/docs/reactivemodule/stringsignal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
