An open API service indexing awesome lists of open source software.

https://github.com/babedev/thisthenthat

Control code flow more easier
https://github.com/babedev/thisthenthat

Last synced: 8 months ago
JSON representation

Control code flow more easier

Awesome Lists containing this project

README

          

[![](https://jitpack.io/v/babedev/thisthenthat.svg)](https://jitpack.io/#babedev/thisthenthat)

# ThisThenThat
Control Kotlin code flow more easier

## Installation

#### Gradle
```Gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}

dependencies {
implementation 'com.github.babedev:thisthenthat:0.1.0'
}
```

## Usage

Check single string is not empty

```Kotlin
val greetMessage = someWhere()

greetMessage.isNotEmpty {
print(it)
}
```

Check multiple strings are not empty

```Kotlin
val greet = "greet"
val message = "message"

(greet and message).isNotEmpty {
it.forEach { print(it) }
}
```